Skip to content

Developers · GraphQL

Common GraphQL Scalars

Last updated 2 November 2026

GraphQL scalar types are similar to primitive types in other programming languages. They always resolve to concrete data. Use this document to guide you in using GraphQL scalar types on Insites.

ID

The scalar type represents a unique identifier, often used to refetch an object or as a key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, a string or an integer input value (such as ) will be accepted as an ID.

scalar ID

String

The scalar type represents textual data as UTF-8 character sequences. GraphQL most often uses the String type to represent free-form human-readable text.

scalar String

Int

The scalar type represents non-fractional signed whole numeric values. It can represent values between .

scalar Int

Boolean

The scalar type represents or .

scalar Boolean

ActivityStreamsPayload

Represents objects.

scalar ActivityStreamsPayload

Float

The scalar type represents signed double-precision fractional values as specified by IEEE 754.

scalar Float

Any

It could be any of the following:

scalar Any

CssColor

Color can be represented by:

scalar CssColor

GeometryJSON

GeometryJSON is a JSON format for encoding a variety of geographic data structures. It supports the following geometry types:

Point example: a GeoJSON object whose is and whose are .

Polygon example: a GeoJSON object whose is and whose are .

More information:https://tools.ietf.org/html/rfc7946.

scalar GeometryJSON

HashObject

Represents data as a collection of unique keys and their values. They are also known as associative arrays, maps or dictionaries. It can be any level deep. In Liquid, write a hash directly as an assign literal, for example , and add keys with dot or bracket notation. Use only to turn a JSON string you receive at runtime into a hash.

scalar HashObject

HeadersObject

Represents data defined by Insites stored in the variable.

scalar HeadersObject

ISO8601DateTime

An ISO 8601-encoded DateTime.

scalar ISO8601DateTime

ImageBlur

Code example:

scalar ImageBlur

ImageQuality

Defines the quality of the image, 0 - lowest quality, 100 - highest quality.

scalar ImageQuality

JSONDate

Represents Date and time data expressed according to ISO 8601 format to which values are automatically converted.

scalar JSONDate

JSONPayload

Represents data structures formatted as JSON standard.

scalar JSONPayload

LatDegree

Must be within range -90.0..90.0.

scalar LatDegree

LngDegree

Must be within range -180.0..180.0.

scalar LngDegree

ParamsObject

Represents data defined by Insites stored in a variable.

scalar ParamsObject

PropertyName

Model property name.

scalar PropertyName