checkModelParent
Function: checkModelParent()
checkModelParent(
model,parentId,context):Promise<void>
Defined in: packages/core/src/models/permissions.ts:233
A child can only be attached to a parent the caller may read: a missing parent and an unreadable one throw the same
NotFound("Object not found")
Parameters
model
any
the child model class
parentId
any
the parent primary key
context
the caller context
Returns
Promise<void>