Functionsparseparse Callableparse(source: string | Source, options?: ParseOptions): PromiseOrValue<DocumentNode>Given a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered. Uses a potentially asynchronous cache if provided to improve performance.Parameterssource: string | Sourceoptionaloptions: ParseOptionsReturns PromiseOrValue<DocumentNode>
Given a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered. Uses a potentially asynchronous cache if provided to improve performance.