type
RelationshipField
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"`
}Resolved singular, many, or polymorphic reference metadata.
CollectionIDStableID- The CollectionID value.
CollectionSlugCollectionSlug- The CollectionSlug value.
Targets[]RelationshipTarget- The Targets value.
HasManybool- The HasMany value.
Polymorphicbool- The Polymorphic value.
OptionFilters[]RelationshipFilter- The OptionFilters value.
OnDeleteReferenceDeleteAction- The OnDelete value.