Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.parseValue

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.parseValue
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { parseValue } = GraphQL;

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