src/main/java/graphql/parser/Parser.java
public Document parseDocument(String input, ParserOptions parserOptions) throws InvalidSyntaxException {
        MultiSourceReader multiSourceReader = MultiSourceReader.newMultiSourceReader()
                .string(input, null)
                .trackData(true)
                .build();
        return parseDocument(multiSourceReader, parserOptions);
    }
/**
     * Parses a string input into a graphql AST {@link Document}
     *
     * @param input         the input to parse
     * @param parserOptions the parser options
     *
     * @return an AST {@link Document}
     *
     * @throws InvalidSyntaxException if the input is not valid graphql syntax
     */
Parses a string input into a graphql AST  Document
@param input         the input to parse
@param parserOptions the parser options

@return an AST  Document

@throws InvalidSyntaxException if the input is not valid graphql syntax
Parses a string input into a graphql AST Document @param input the input to parse @param parserOptions the parser options @return an AST Document @throws InvalidSyntaxException if the input is not valid graphql syntax
public Document parseDocument(String input, ParserOptions parserOptions) throws InvalidSyntaxException {
        MultiSourceReader multiSourceReader = MultiSourceReader.newMultiSourceReader()
                .string(input, null)
                .trackData(true)
                .build();
        return parseDocument(multiSourceReader, parserOptions);
    }
public Document parseDocument ( String input , ParserOptions parserOptions ) throws InvalidSyntaxException { MultiSourceReader multiSourceReader = MultiSourceReader . newMultiSourceReader ( ) . string ( input , null ) . trackData ( true ) . build ( ) ; return parseDocument ( multiSourceReader , parserOptions ) ; }
Parses a string input into a graphql AST {@link Document}
 @param input         the input to parse
 @param parserOptions the parser options
Parses a string input into a graphql AST { @link Document } @param input the input to parse @param parserOptions the parser options