Skip to main content

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 ValueGraphQL Value
ObjectInput Object
ArrayList
BooleanBoolean
StringString
NumberInt / Float
BigIntInt
nullNullValue

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 ValueGraphQL Value
ObjectInput Object
ArrayList
BooleanBoolean
StringString / Enum Value
NumberInt / Float
BigIntInt
UnknownEnum Value
nullNullValue

__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 ValueGraphQL Value
ObjectInput Object
ArrayList
BooleanBoolean
StringString
NumberInt / Float
BigIntInt
nullNullValue

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 ValueGraphQL Value
ObjectInput Object
ArrayList
BooleanBoolean
StringString / Enum Value
NumberInt / Float
BigIntInt
UnknownEnum Value
nullNullValue

sanitizeName()

Sanitizes a name of a field or type if it is a reserved keyword in Kotlin.