Scalars
Int
or String
.
GraphQL queries and responses take the form of a hierarchical tree; the leaves on these trees are GraphQL scalars.
For more information, see the GraphQL spec.
Scalar | Definition |
---|---|
Boolean |
Represents |
Int |
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. |
JSON |
A JSON object. Example value:
|
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
UnsignedInt64 |
Unsigned integer of up to 64 bit, encoded as a number (not a string).
Example value: |
Void |
A void type that can be used to return a null value from a mutation. |