type
Field
type Field struct {
ID StableID `json:"id"`
Name string `json:"name"`
Path query.Path `json:"path"`
Type FieldType `json:"type"`
Category FieldCategory `json:"category"`
Required bool `json:"required"`
Unique bool `json:"unique"`
Index bool `json:"index,omitempty"`
Localized bool `json:"localized,omitempty"`
Default *string `json:"default,omitempty"`
Admin FieldAdmin `json:"admin"`
Text *TextField `json:"text,omitempty"`
Textarea *TextField `json:"textarea,omitempty"`
Code *CodeField `json:"code,omitempty"`
Number *NumberField `json:"number,omitempty"`
Date *DateField `json:"date,omitempty"`
Select *SelectField `json:"select,omitempty"`
Point *PointField `json:"point,omitempty"`
UI *UIField `json:"ui,omitempty"`
Join *JoinField `json:"join,omitempty"`
Virtual *VirtualField `json:"virtual,omitempty"`
Relationship *RelationshipField `json:"relationship,omitempty"`
Upload *UploadField `json:"upload,omitempty"`
Nested *NestedField `json:"nested,omitempty"`
Blocks *BlocksField `json:"blocks,omitempty"`
Plugin *PluginField `json:"plugin,omitempty"`
}The resolved contract for one field.
IDStableID- The ID value.
Namestring- The Name value.
Pathquery.Path- The Path value.
TypeFieldType- The Type value.
CategoryFieldCategory- The Category value.
Requiredbool- The Required value.
Uniquebool- The Unique value.
Indexbool- The Index value.
Localizedbool- The Localized value.
Default*string- The Default value.
AdminFieldAdmin- The Admin value.
Text*TextField- The Text value.
Textarea*TextField- The Textarea value.
Code*CodeField- The Code value.
Number*NumberField- The Number value.
Date*DateField- The Date value.
Select*SelectField- The Select value.
Point*PointField- The Point value.
UI*UIField- The UI value.
Join*JoinField- The Join value.
Virtual*VirtualField- The Virtual value.
Relationship*RelationshipField- The Relationship value.
Upload*UploadField- The Upload value.
Nested*NestedField- The Nested value.
Blocks*BlocksField- The Blocks value.
Plugin*PluginField- The Plugin value.
Exactly one matching detail is set for typed kinds: Text, Textarea, Code, Number, Date, Select, Point, UI, Join, Virtual, Relationship, Upload, Nested, Blocks, or Plugin. Checkbox, email, and simple JSON fields need no extra detail.