function
Relationships
Relationships creates links to several documents in the target collection.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
target | schema.CollectionSlug | The target value. |
Returns
The declared result.
RelationshipsFieldFull signature
func Relationships(
name string,
target schema.CollectionSlug,
) RelationshipsFieldRelated types
CollectionSlugA validated collection or global slug.
RelationshipsFieldRelationshipsField configures links to several documents in the target collection.