Basker Docs

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.

FieldTypeDescription
booleanBoolean
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.

ColorField

Implements Field.

FieldTypeDescription
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.
valueString

DateField

Implements Field.

FieldTypeDescription
keyString
labelString
timezoneStringIANA time zone the editor chose, if any.
typeStringThe stored field type, for example text, richText, relationship or group.
valueStringISO 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.

FieldTypeDescription
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.

FieldDefinition

FieldTypeDescription
hasManyBoolean
keyString
labelString
relationToString
typeString

FieldGroup

One row of a list field.

FieldTypeDescription
fieldFieldArguments: key: String!.
fields[Field!]

GroupField

Implements Field.

FieldTypeDescription
fieldFieldArguments: key: String!.
fields[Field!]
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.

JsonField

Implements Field.

FieldTypeDescription
jsonJSON
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.

LinkField

Implements Field.

FieldTypeDescription
hrefString
keyString
labelString
linkTypeStringinternal or external.
newTabBoolean
targetReferenceThe linked record for internal links.
textStringThe link label the editor entered.
typeStringThe stored field type, for example text, richText, relationship or group.

ListField

Implements Field.

FieldTypeDescription
items[FieldGroup!]
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.

MediaField

Implements Field.

FieldTypeDescription
hasManyBoolean
keyString
labelString
mediaMedia
mediaList[Media!]
typeStringThe stored field type, for example text, richText, relationship or group.

NumberField

Implements Field.

FieldTypeDescription
keyString
labelString
numberFloat
typeStringThe stored field type, for example text, richText, relationship or group.

ReferenceField

Implements Field.

FieldTypeDescription
hasManyBoolean
keyString
labelString
referenceReferenceThe first referenced record that is published and public.
references[Reference!]Every referenced record that is published and public, in stored order.
relationToString
typeStringThe stored field type, for example text, richText, relationship or group.

RichTextField

Implements Field.

FieldTypeDescription
keyString
labelString
richTextRichText
typeStringThe stored field type, for example text, richText, relationship or group.

SelectField

Implements Field.

FieldTypeDescription
keyString
labelString
options[SelectOption!]
typeStringThe stored field type, for example text, richText, relationship or group.
valueStringThe first selected value.
values[String!]

SelectOption

FieldTypeDescription
labelString
valueString

TextField

Implements Field.

FieldTypeDescription
keyString
labelString
typeStringThe stored field type, for example text, richText, relationship or group.
valueString

On this page