Fields
The Field interface and its implementations for custom attributes, custom object values, and theme settings
A field is one configured value. Each one implements the Field interface. Select the value with an inline fragment on the implementation.
BooleanField
Implements Field.
| Field | Type | Description |
|---|---|---|
boolean | Boolean | |
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
ColorField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
value | String |
DateField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
timezone | String | IANA time zone the editor chose, if any. |
type | String | The stored field type, for example text, richText, relationship or group. |
value | String | ISO 8601 date-time in UTC. |
Field
A configured field value: a custom attribute, a custom object value, a theme setting, or a theme-block setting.
Implemented by BooleanField, ColorField, DateField, GroupField, JsonField, LinkField, ListField, MediaField, NumberField, ReferenceField, RichTextField, SelectField, TextField.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
FieldDefinition
| Field | Type | Description |
|---|---|---|
hasMany | Boolean | |
key | String | |
label | String | |
relationTo | String | |
type | String |
FieldGroup
One row of a list field.
GroupField
Implements Field.
| Field | Type | Description |
|---|---|---|
field | Field | Arguments: key: String!. |
fields | [Field!] | |
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
JsonField
Implements Field.
| Field | Type | Description |
|---|---|---|
json | JSON | |
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
LinkField
Implements Field.
| Field | Type | Description |
|---|---|---|
href | String | |
key | String | |
label | String | |
linkType | String | internal or external. |
newTab | Boolean | |
target | Reference | The linked record for internal links. |
text | String | The link label the editor entered. |
type | String | The stored field type, for example text, richText, relationship or group. |
ListField
Implements Field.
| Field | Type | Description |
|---|---|---|
items | [FieldGroup!] | |
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
MediaField
Implements Field.
| Field | Type | Description |
|---|---|---|
hasMany | Boolean | |
key | String | |
label | String | |
media | Media | |
mediaList | [Media!] | |
type | String | The stored field type, for example text, richText, relationship or group. |
NumberField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
number | Float | |
type | String | The stored field type, for example text, richText, relationship or group. |
ReferenceField
Implements Field.
| Field | Type | Description |
|---|---|---|
hasMany | Boolean | |
key | String | |
label | String | |
reference | Reference | The first referenced record that is published and public. |
references | [Reference!] | Every referenced record that is published and public, in stored order. |
relationTo | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
RichTextField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
richText | RichText | |
type | String | The stored field type, for example text, richText, relationship or group. |
SelectField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
options | [SelectOption!] | |
type | String | The stored field type, for example text, richText, relationship or group. |
value | String | The first selected value. |
values | [String!] |
SelectOption
| Field | Type | Description |
|---|---|---|
label | String | |
value | String |
TextField
Implements Field.
| Field | Type | Description |
|---|---|---|
key | String | |
label | String | |
type | String | The stored field type, for example text, richText, relationship or group. |
value | String |