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