sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for
     * that value.
     * Throws GraphQLError if a syntax error is encountered.
     *
     * This is useful within tools that operate upon GraphQL Values directly and
     * in isolation of complete GraphQL documents.
     *
     * Consider providing the results to the utility function: valueFromAST().
     */
Given a string containing a GraphQL value (ex. `[42]`), parse the AST for
that value.
Throws GraphQLError if a syntax error is encountered.

This is useful within tools that operate upon GraphQL Values directly and
in isolation of complete GraphQL documents.

Consider providing the results to the utility function: valueFromAST().
Given a string containing a GraphQL value ( ex . ` [ 42 ] ` ) parse the AST for that value . Throws GraphQLError if a syntax error is encountered . This is useful within tools that operate upon GraphQL Values directly and in isolation of complete GraphQL documents . Consider providing the results to the utility function : valueFromAST () .
function parseValue(source, options) {
      var sourceObj = typeof source === 'string' ? new Source(source) : source;
      var lexer = createLexer(sourceObj, options || {});
      expect(lexer, TokenKind.SOF);
      var value = parseValueLiteral(lexer, false);
      expect(lexer, TokenKind.EOF);
      return value;
    }
function parseValue ( source , options ) { var sourceObj = typeof source === 'string' ? new Source ( source ) : source ; var lexer = createLexer ( sourceObj , options || { } ) ; expect ( lexer , TokenKind . SOF ) ; var value = parseValueLiteral ( lexer , false ) ; expect ( lexer , TokenKind . EOF ) ; return value ; }
Given a string containing a GraphQL value (ex.
Given a string containing a GraphQL value ( ex .