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

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

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

Produces a JavaScript value given a GraphQL Value AST.

Unlike valueFromAST(), no type is provided. The resulting JavaScript value will reflect the provided GraphQL value AST.

GraphQL Value JavaScript Value
Input Object Object
List Array
Boolean Boolean
String / Enum String
Int / Float Number
Null null

Parameters

valueNode: ValueNode
optional
variables: Maybe<{ [key: string]: any; }>