About Scalars
ScalarsThey are basic value types:Int/Float/String/BooleanorID.
When calling the GraphQL API, nested child fields must be specified until only scalar values are returned.
Boolean
BooleanScalar types representtrueorfalse.
Float
FloatScalar type represents a signed double-precision floating-point number that conforms toIEEE 754standard.
ID
IDThe scalar type represents a unique identifier, usually used to retrieve objects or as a cache key.In the JSON response, the ID type is displayed as a string; however, it is not designed for human readability.When used as an input type, any string (such as "4") or integer (such as 4) can be accepted as an ID.
Int
IntScalar types represent non-decimal signed integers. Int can represent values from -(2^31) to 2^31 - 1.
JSON
JSONThe scalar type represents an arbitrary 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-structured data.
String
StringThe scalar type represents text data, presented in the form of a UTF-8 character sequence.The String type is most commonly used by GraphQL to represent free-form human-readable text.