method
RelationshipField.AppendHooks
AppendHooks appends supplied callbacks after existing callbacks in each phase.
Arguments
| Argument | Type | Description |
|---|---|---|
value | Hooks[operation.ID] | The value value. |
Returns
The declared result.
RelationshipFieldFull signature
func (f RelationshipField) AppendHooks(
value Hooks[operation.ID],
) RelationshipFieldRelated types
RelationshipFieldRelationshipField configures a link to one document in the target collection.
HooksHooks registers transforms and event callbacks for one field's stored value. Each list runs in declaration order for each field occurrence, including nested array rows. Collection or global hooks run first in the same phase, except AfterCommit, where field callbacks run first.
IDID is the logical write value of a singular relationship. It is distinct from the potentially populated logical read value.