src/language-graphql/parser-graphql.js/parse
function parse(text /*, parsers, opts*/) {
  // Inline the require to avoid loading all the JS if we don't use it
  const { parse } = require("graphql/language/parser");
  const { result: ast, error } = tryCombinations(
    () => parse(text, { ...parseOptions }),
    () =>
      parse(text, { ...parseOptions, allowLegacySDLImplementsInterfaces: true })
  );

  if (!ast) {
    throw createParseError(error);
  }

  ast.comments = parseComments(ast);
  removeTokens(ast);
  return ast;
}