method
RelationshipField.AppendReadHooks
AppendReadHooks appends response-transform hooks after existing callbacks.
Arguments
| Argument | Type | Description |
|---|---|---|
value | ReadHooks[operation.ReferenceOutput] | The value value. |
Returns
The declared result.
RelationshipFieldFull signature
Related types
RelationshipFieldRelationshipField configures a link to one document in the target collection.
ReadHooksReadHooks registers response transformations using the field's output type, which can differ from its write type when a relationship is populated.
ReferenceOutputReferenceOutput is the logical read value of a singular relationship. ID is available regardless of whether an authorized document was populated.