UNPKG

691 BTypeScriptView Raw
1import { ValueNode } from 'graphql';
2/**
3 * Produces a GraphQL Value AST given a JavaScript object.
4 * Function will match JavaScript/JSON values to GraphQL AST schema format
5 * by using the following mapping.
6 *
7 * | JSON Value | GraphQL Value |
8 * | ------------- | -------------------- |
9 * | Object | Input Object |
10 * | Array | List |
11 * | Boolean | Boolean |
12 * | String | String |
13 * | Number | Int / Float |
14 * | BigInt | Int |
15 * | null | NullValue |
16 *
17 */
18export declare function astFromValueUntyped(value: any): ValueNode | null;