Skip to main content
function parse
import { parse } from "https://deno.land/x/shark@1.0.0/deps.ts";

Given a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered.

Parameters

source: string | Source
optional
options: ParseOptions | undefined

Returns

DocumentNode