Scalars
Int
or String
.
GraphQL queries and responses take the form of a hierarchical tree, where the leaves on the tree are GraphQL scalars.
For more information, see the GraphQL spec.
Scalar | Definition |
---|---|
Boolean |
Represents |
Color |
A string containing a hexadecimal representation of a color. For example, "#6A8D48". |
DateTime |
An ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
A signed double-precision fractional value, as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
A unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it's not intended to be human-readable. Example value: |
Int |
A non-fractional signed whole numeric value. |
JSON |
A JSON object. Example value:
|
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Textual data, represented as a UTF-8 character sequence. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
An RFC 3986 and RFC 3987-compliant URI string. For example, |
Scalar | Definition |
---|---|
Boolean |
A value that can be |
DateTime |
An ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
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:
|
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
Represents an RFC 3986 and RFC 3987-compliant URI string. For example, |
Scalar | Definition |
---|---|
Boolean |
Represents |
DateTime |
Represents an ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
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:
|
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
Represents an RFC 3986 and RFC 3987-compliant URI string. For example, |
Scalar | Definition |
---|---|
Boolean |
Represents |
DateTime |
Represents an ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
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:
|
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
Represents an RFC 3986 and RFC 3987-compliant URI string. For example, |
Scalar | Definition |
---|---|
Boolean |
Represents |
DateTime |
Represents an ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
Int |
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. |
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
Represents an RFC 3986 and RFC 3987-compliant URI string. For example, |
Scalar | Definition |
---|---|
Boolean |
Represents |
DateTime |
Represents an ISO 8601-encoded date and time string.
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
represented as |
Decimal |
A signed decimal number, which supports arbitrary precision and is serialized as a string. Example values: |
Float |
Represents signed double-precision fractional values as specified by IEEE 754. |
HTML |
A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements. Example value: |
ID |
Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: |
Int |
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. |
Money |
A monetary value string without a currency symbol or code. Example value: |
String |
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. |
URL |
Represents an RFC 3986 and RFC 3987-compliant URI string. For example, |