Scalars

Scalars are primitive values such as 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 true or false values.

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: { "product": { "id": "gid://shopify/Product/1346443542550", "title": "White T-shirt", "options": [{ "name": "Size", "values": ["M", "L"] }] } }

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: 1099511627776

Void

A void type that can be used to return a null value from a mutation.