import { parseValue } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.ts";
Given a string containing a GraphQL value (ex. [42]
), parse the AST for
that value.
Throws GraphQLError if a syntax error is encountered.
This is useful within tools that operate upon GraphQL Values directly and in isolation of complete GraphQL documents.
Consider providing the results to the utility function: valueFromAST().
Parameters
source: string | Source
optional
options: ParseOptions | undefined