Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Defined the arguments of the given type. Should be empty except for Function.
Defined the arguments of the given type. Should be empty except for Function.
Attributes
- Inherited from:
- Schema
Defines if the type can fail during resolution.
Builds a new Schema of A from an existing Schema of T and a function from A to T.
Builds a new Schema of A from an existing Schema of T and a function from A to T.
Value parameters
- f
-
a function from
AtoT.
Attributes
- Inherited from:
- Schema
Defines if the underlying type represents a nullable value. Should be false except for Option.
Defines if the underlying type represents a nullable value. Should be false except for Option.
Attributes
- Inherited from:
- Schema
Defines if the type can resolve to null or not. It is true if the type is nullable or if it can fail.
Defines if the type can resolve to null or not. It is true if the type is nullable or if it can fail.
Attributes
- Inherited from:
- Schema
Changes the name of the generated graphql type.
Changes the name of the generated graphql type.
Value parameters
- inputName
-
new name for the type when it's an input type (by default "Input" is added after the name)
- name
-
new name for the type
Attributes
- Inherited from:
- Schema
Generates a GraphQL type object from T. Unlike toType, this function is optimized and will not re-generate the type at each call.
Generates a GraphQL type object from T. Unlike toType, this function is optimized and will not re-generate the type at each call.
Value parameters
- isInput
-
indicates if the type is passed as an argument. This is needed because GraphQL differentiates
InputTypefromObjectType. - isSubscription
-
indicates if the type is used in a subscription operation. For example, ZStream gives a different GraphQL type depending whether it is used in a subscription or elsewhere.
Attributes
- Inherited from:
- Schema