LogoRobo.js
Framework

checkRestrictConstraints()

Function: checkRestrictConstraints()

function checkRestrictConstraints(
   modelName, 
   schema, 
   record, 
ctx): Promise<void>

Check if delete should be blocked due to restrict policy.

Parameters

ParameterTypeDescription
modelNamestringModel being deleted from
schemaNormalizedSchemaModel's normalized schema
record{ [key: string]: unknown; id: string; }Record being deleted
record.idstring-
ctxCascadeContextCascade context

Returns

Promise<void>

Throws

FlashcoreError if delete is blocked

On this page