Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parseValue

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().

function parseValue(source: string | Source, options?: ParseOptions | undefined): ValueNode;
§
parseValue(source: string | Source, options?: ParseOptions | undefined): ValueNode
[src]

§Parameters

§
source: string | Source
[src]
§
options?: ParseOptions | undefined optional
[src]