Scalars

ScalarDefinition
Boolean
Represents true or false values.
Int
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
NonNegativeInt
Integers that will have a value of 0 or more.
Float
Represents signed double-precision fractional values as specified by IEEE 754.
NonNegativeFloat
Floats that will have a value of 0 or more.
String
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
NonEmptyString
A string that cannot be passed as an empty value.
ID
Represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
JSON
A JSON Object. Example value: { "key1": "Value 1", "key2": "Value 2", "key3": 3 }
DateTime
An ISO-8601 encoded UTC date time string. Example value: "2019-07-03T20:47:55Z".
Time
A time string at UTC, such as 10:15:30Z, compliant with the full-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
Duration
A string representing a duration conforming to the ISO8601 standard, such as: P1W1DT13H23M34S P is the duration designator (for period) placed at the start of the duration representation. Y is the year designator that follows the value for the number of years. M is the month designator that follows the value for the number of months. W is the week designator that follows the value for the number of weeks. D is the day designator that follows the value for the number of days. T is the time designator that precedes the time components of the representation. H is the hour designator that follows the value for the number of hours. M is the minute designator that follows the value for the number of minutes. S is the second designator that follows the value for the number of seconds. Note the time designator, T, that precedes the time value. Matches moment.js, Luxon and DateFns implementations ,/. is valid for decimal places
EmailAddress
A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.
PhoneNumber
A field whose value conforms to the standard E.164 format as specified in: https://en.wikipedia.org/wiki/E.164. Basically this is +17895551234.
URL
An RFC 3986 and RFC 3987 compliant URI string.
Locale
The locale in the format of a BCP 47 (RFC 5646) standard string
Currency
A field whose value is a Currency: https://en.wikipedia.org/wiki/ISO_4217.
Latitude
A field whose value is a valid decimal degrees latitude number (53.471): https://en.wikipedia.org/wiki/Latitude
Longitude
A field whose value is a valid decimal degrees longitude number (53.471): https://en.wikipedia.org/wiki/Longitude
HexColorCode
A field whose value is a hex color code: https://en.wikipedia.org/wiki/Web_colors.