Scalars
Last updated
Was this helpful?
Last updated
Was this helpful?
Scalars are the value types that every field in a GraphQL document eventually resolves to. It can be viewed as the primitive data type that stores a single value. There are 5 built-in scalars: int
, float
, string
, Boolean
, and id
- we have also defined custom scalars to help define the data we return.
A 20-byte Ethereum address, encoded as a checksummed hex string with 0x
prefix.
An arbitrary-precision decimal data type, per the General Decimal Arithmetic specification. Learn more about why BigDecimal is .
An integer of arbitrary precision, decimal-encoded. Typically a uint256.
Represents a boolean value that can be either true
or false
.
An array of byte, encoded as a lowercase hex string with 0x
prefix.
A signed double-precision floating-point value.
A unique identifier, often used to refetch an object or as a key for caching.
A signed 32-bit integer.
A UTF-8 character sequence.
A point in time, encoded per . This is in second precision and in UTC, an example would be 2023-12-04T18:32:12Z
.