Skip to main content
Module

x/graphql_deno/mod.ts>parseValue

GraphQL-JS ported to Deno
Latest
function parseValue
import { parseValue } from "https://deno.land/x/graphql_deno@v15.0.0/mod.ts";

Given a string containing a GraphQL value, 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.

Parameters

source: string | Source
optional
options: ParseOptions