src/language-graphql/parser-graphql.js/createParseError
function createParseError(error) {
  const { GraphQLError } = require("graphql/error/GraphQLError");
  if (error instanceof GraphQLError) {
    const {
      message,
      locations: [start],
    } = error;
    return createError(message, { start });
  }

  /* istanbul ignore next */
  return error;
}