type

RelationshipField

Resolved singular, many, or polymorphic reference metadata.

Properties

PropertyTypeDescription
CollectionIDStableIDThe CollectionID value.
CollectionSlugCollectionSlugThe CollectionSlug value.
Targets[]RelationshipTargetThe Targets value.
HasManyboolThe HasMany value.
PolymorphicboolThe Polymorphic value.
OptionFilters[]RelationshipFilterThe OptionFilters value.
OnDeleteReferenceDeleteActionThe 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"` }

Source schema/manifest.go:578