src/main/java/graphql/parser/Parser.java
public Document parseDocument(String input, String sourceName) throws InvalidSyntaxException {
        MultiSourceReader multiSourceReader = MultiSourceReader.newMultiSourceReader()
                .string(input, sourceName)
                .trackData(true)
                .build();
        return parseDocument(multiSourceReader);
    }
/**
     * Parses a string input into a graphql AST {@link Document}
     *
     * @param input      the input to parse
     * @param sourceName - the name to attribute to the input text in {@link SourceLocation#getSourceName()}
     *
     * @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 sourceName - the name to attribute to the input text in  SourceLocation#getSourceName()

@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 sourceName - the name to attribute to the input text in SourceLocation#getSourceName () @return an AST Document @throws InvalidSyntaxException if the input is not valid graphql syntax
public Document parseDocument(String input, String sourceName) throws InvalidSyntaxException {
        MultiSourceReader multiSourceReader = MultiSourceReader.newMultiSourceReader()
                .string(input, sourceName)
                .trackData(true)
                .build();
        return parseDocument(multiSourceReader);
    }
public Document parseDocument ( String input , String sourceName ) throws InvalidSyntaxException { MultiSourceReader multiSourceReader = MultiSourceReader . newMultiSourceReader ( ) . string ( input , sourceName ) . trackData ( true ) . build ( ) ; return parseDocument ( multiSourceReader ) ; }
Parses a string input into a graphql AST {@link Document}
 @param input      the input to parse
 @param sourceName - the name to attribute to the input text in {@link SourceLocation#getSourceName()}
Parses a string input into a graphql AST { @link Document } @param input the input to parse @param sourceName - the name to attribute to the input text in { @link SourceLocation#getSourceName () }