function
PolymorphicRelationship
PolymorphicRelationship creates a link to one document from any of the target collections.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
targets | []schema.CollectionSlug | The targets value. |
Returns
The declared result.
PolymorphicRelationshipFieldFull signature
func PolymorphicRelationship(
name string,
targets ...schema.CollectionSlug,
) PolymorphicRelationshipFieldRelated types
CollectionSlugA validated collection or global slug.
PolymorphicRelationshipFieldPolymorphicRelationshipField configures a link to one document from any of the target collections.