UNPKG

647 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 * | null | NullValue |
15 *
16 */
17export declare function astFromValueUntyped(value: any): ValueNode | null;