function
AsRelationships
AsRelationships provides a checked concrete view of an immutable node.
Arguments
| Argument | Type | Description |
|---|---|---|
node | Node | The node value. |
Returns
The declared result.
(RelationshipsField, error)Full signature
func AsRelationships(node Node) (RelationshipsField, error)Related types
NodeNode is any field definition that can be placed in Fields. Authors normally create nodes with constructors such as Text, Select, Group, or Array and use their concrete fluent methods before adding them to a field list. The interface is sealed so Ridu can snapshot every supported field safely.
RelationshipsFieldRelationshipsField configures links to several documents in the target collection.