type
RelationshipField
Resolved singular, many, or polymorphic reference metadata.
Properties
| Property | Type | Description |
|---|---|---|
CollectionID | StableID | The CollectionID value. |
CollectionSlug | CollectionSlug | The CollectionSlug value. |
Targets | []RelationshipTarget | The Targets value. |
HasMany | bool | The HasMany value. |
Polymorphic | bool | The Polymorphic value. |
OptionFilters | []RelationshipFilter | The OptionFilters value. |
OnDelete | ReferenceDeleteAction | The OnDelete value. |
Full signature
type RelationshipField struct {
CollectionID StableID `json:"collectionId,omitempty"`
CollectionSlug CollectionSlug `json:"collectionSlug,omitempty"`
Targets []RelationshipTarget `json:"targets,omitempty"`
HasMany bool `json:"hasMany,omitempty"`
Polymorphic bool `json:"polymorphic,omitempty"`
OptionFilters []RelationshipFilter `json:"optionFilters,omitempty"`
OnDelete ReferenceDeleteAction `json:"onDelete"`
}