Skip to content

relations

Propagates a change to records of another service.

NameCategoryDescription
createRelated
hooks

Creates related records in other services after a successful create call. For each result item, a data function produces the record to create in the target service. They are created in a single multi-create if the related service allows it, otherwise with one call per item.

onDelete
hooks

Manipulates related items when a record is deleted, similar to SQL foreign key actions. Supports 'cascade' (remove related records) and 'set null' (nullify the foreign key). Unlike database-level cascades, this hook triggers service events and hooks for related items.

See all tags for the full vocabulary.

Released under the MIT License.