index.js
function (dirname, options) {
  var src = options.graphqlPath || (dirname + '/node_modules/graphql');
  // console.log(src);

  try {
    graphql = require(src).graphql;
    var graphqlUtil = require(src + '/utilities');
    introspectionQuery = graphqlUtil.introspectionQuery;
    printSchema = graphqlUtil.printSchema;
  } catch (err) {
    throw new gutil.PluginError('gulp-graphql', err, {
      message: 'failed to load graphql from ' + src
    });
  }

  if (!graphql || !introspectionQuery || !printSchema) {
    throw new gutil.PluginError('gulp-graphql',
      'failed to load graphql from ' + src);
  }
}
function (dirname, options) {
  var src = options.graphqlPath || (dirname + '/node_modules/graphql');
  // console.log(src);

  try {
    graphql = require(src).graphql;
    var graphqlUtil = require(src + '/utilities');
    introspectionQuery = graphqlUtil.introspectionQuery;
    printSchema = graphqlUtil.printSchema;
  } catch (err) {
    throw new gutil.PluginError('gulp-graphql', err, {
      message: 'failed to load graphql from ' + src
    });
  }

  if (!graphql || !introspectionQuery || !printSchema) {
    throw new gutil.PluginError('gulp-graphql',
      'failed to load graphql from ' + src);
  }
}
function ( dirname , options ) { var src = options . graphqlPath || ( dirname + '/node_modules/graphql' ) ; // console.log(src); try { graphql = require ( src ) . graphql ; var graphqlUtil = require ( src + '/utilities' ) ; introspectionQuery = graphqlUtil . introspectionQuery ; printSchema = graphqlUtil . printSchema ; } catch ( err ) { throw new gutil . PluginError ( 'gulp-graphql' , err , { message : 'failed to load graphql from ' + src } ) ; } if ( ! graphql || ! introspectionQuery || ! printSchema ) { throw new gutil . PluginError ( 'gulp-graphql' , 'failed to load graphql from ' + src ) ; } }
loads graphql via absolute path to base directory
loads graphql via absolute path to base directory