Functionsparseparse Callableparse(source: string | Source, options?: ParseOptions): DocumentNodeGiven a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered.Parameterssource: string | Sourceoptionaloptions: ParseOptionsReturns DocumentNode
Given a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered.