Scalars

The scalar type is a primitive leaf node in a GraphQL schema. GraphQL responses take the form of a hierarchical tree; the leaves (the most basic pieces of data) on these trees are GraphQL scalars like Int, Float, String, Boolean, and ID.

Int

A signed 32‐bit integer.

Float

A signed double-precision floating-point value.

String

A UTF‐8 character sequence.

Boolean

A boolean value: true or false.

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, defining it as an ID signifies that it is not intended to be human‐readable.

DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

JSON

The JSON scalar type represents JSON values as specified by ECMA-404.