LogoRobo.js
Framework

collectCascadeOperations()

Function: collectCascadeOperations()

function collectCascadeOperations(
   modelName, 
   schema, 
   record, 
   ctx, 
depth): Promise<CascadeOp[]>

Collect all cascade operations for a delete. Operations are collected depth-first to ensure proper ordering.

Parameters

ParameterTypeDefault valueDescription
modelNamestringundefinedModel being deleted from
schemaNormalizedSchemaundefinedModel's normalized schema
record{ [key: string]: unknown; id: string; }undefinedRecord being deleted
record.idstringundefined-
ctxCascadeContextundefinedCascade context
depthnumber0Current depth in the cascade tree

Returns

Promise<CascadeOp[]>

Array of cascade operations to execute

On this page