Configuration
The configuration is a superset of the existing configuration in graphql-codegen.
integerStringRegExp$3
IntValue:
- NegativeSign? 0
- NegativeSign? NonZeroDigit ( Digit+ )?
integerStringRegExp$2
IntValue:
- NegativeSign? 0
- NegativeSign? NonZeroDigit ( Digit+ )?
integerStringRegExp$1
IntValue:
- NegativeSign? 0
- NegativeSign? NonZeroDigit ( Digit+ )?
integerStringRegExp
IntValue:
- NegativeSign? 0
- NegativeSign? NonZeroDigit ( Digit+ )?
RESERVED_KEYWORDS
https://kotlinlang.org/docs/keyword-reference.html#hard-keywords
inspect()
Used to print values in error messages.
getArgumentValues$1()
Prepares an object map of argument values given a list of argument definitions and list of argument AST nodes.
Note: The returned value is a plain Object with a prototype, since it is exposed to user code. Care should be taken to not pull values from the Object prototype.
astFromValueUntyped$1()
Produces a GraphQL Value AST given a JavaScript object. Function will match JavaScript/JSON values to GraphQL AST schema format by using the following mapping.
| JSON Value | GraphQL Value |
|---|---|
| Object | Input Object |
| Array | List |
| Boolean | Boolean |
| String | String |
| Number | Int / Float |
| BigInt | Int |
| null | NullValue |
astFromValue$1()
Produces a GraphQL Value AST given a JavaScript object. Function will match JavaScript/JSON values to GraphQL AST schema format by using suggested GraphQLInputType. For example:
astFromValue("value", GraphQLString)
A GraphQL type must be provided, which will be used to interpret different JavaScript values.
| JSON Value | GraphQL Value |
|---|---|
| Object | Input Object |
| Array | List |
| Boolean | Boolean |
| String | String / Enum Value |
| Number | Int / Float |
| BigInt | Int |
| Unknown | Enum Value |
| null | NullValue |
__spread()
Deprecated
__spreadArrays()
Deprecated
getArgumentValues()
Prepares an object map of argument values given a list of argument definitions and list of argument AST nodes.
Note: The returned value is a plain Object with a prototype, since it is exposed to user code. Care should be taken to not pull values from the Object prototype.
astFromValueUntyped()
Produces a GraphQL Value AST given a JavaScript object. Function will match JavaScript/JSON values to GraphQL AST schema format by using the following mapping.
| JSON Value | GraphQL Value |
|---|---|
| Object | Input Object |
| Array | List |
| Boolean | Boolean |
| String | String |
| Number | Int / Float |
| BigInt | Int |
| null | NullValue |
astFromValue()
Produces a GraphQL Value AST given a JavaScript object. Function will match JavaScript/JSON values to GraphQL AST schema format by using suggested GraphQLInputType. For example:
astFromValue("value", GraphQLString)
A GraphQL type must be provided, which will be used to interpret different JavaScript values.
| JSON Value | GraphQL Value |
|---|---|
| Object | Input Object |
| Array | List |
| Boolean | Boolean |
| String | String / Enum Value |
| Number | Int / Float |
| BigInt | Int |
| Unknown | Enum Value |
| null | NullValue |
sanitizeName()
Sanitizes a name of a field or type if it is a reserved keyword in Kotlin.