blob: ab7512e465bcb85d952de1f5c89d138254de4f56 [file] [log] [blame]
import Maybe from '../tsutils/Maybe';
import { ValueNode } from '../language/ast';
/**
* 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 |
*
*/
export function valueFromASTUntyped(
valueNode: ValueNode,
variables?: Maybe<{ [key: string]: any }>,
): any;