function
PolymorphicRelationships
PolymorphicRelationships creates links to documents 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.
PolymorphicRelationshipsFieldFull signature
func PolymorphicRelationships(
name string,
targets ...schema.CollectionSlug,
) PolymorphicRelationshipsFieldRelated types
CollectionSlugA validated collection or global slug.
PolymorphicRelationshipsFieldPolymorphicRelationshipsField configures links to documents from any of the target collections.