Scalars
Int
or String
.
For more information, see the GraphQL spec.
Scalar | Definition |
---|---|
Boolean |
Represents |
DateTime |
Represents an ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
Int |
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
Void |
A void type that can be used to return a null value from a mutation. |