About Scalars
ScalarsIs a basic value type:Int/Float/String/BooleanorID.
When calling the GraphQL API, nested subfields must be specified until only scalar values are returned.
Boolean
BooleanRepresents scalar typetrueorfalse.
Float
FloatA scalar type represents a signed double-precision floating-point number that conforms toIEEE 754standard.
ID
IDA scalar type represents a unique identifier, typically used to retrieve objects or as a cache key.In the JSON response, the ID type is displayed as a string;It is not designed to be human-readable. When used as an input type, any string (such as "4") or integer (such as 4) can be accepted as an ID.
Integer
IntA scalar type represents a non-fractional signed integer value. Int can represent values from -(2^31) to 2^31 - 1.
JSON
JSONThe scalar type represents any JSON data structure.It can contain any combination of objects, arrays, strings, numbers, booleans, and null values.This type is usually used to pass dynamic or non-fixed structured data.
String
StringScalar types represent text data, presented in the form of UTF-8 character sequences.String type is often used by GraphQL to represent free-form human-readable text.