function
Relationship
Relationship creates a link to one document in the target collection.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
target | schema.CollectionSlug | The target value. |
Returns
The declared result.
RelationshipFieldFull signature
func Relationship(
name string,
target schema.CollectionSlug,
) RelationshipFieldRelated types
CollectionSlugA validated collection or global slug.
RelationshipFieldRelationshipField configures a link to one document in the target collection.