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