checkRecord
checkRecord(
source,ctx,operation,record,input?,options?):Promise<boolean>
Defined in: packages/schema/src/access/resolve.ts:202
Record-level check for an operation: runs the rule with the record (and input) and evaluates a returned filter against it. Creates are checked against the input, other operations against the existing record.
Parameters
Section titled “Parameters”source
Section titled “source”Omit<AccessContext, "model" | "operation" | "record">
operation
Section titled “operation”record
Section titled “record”Record<string, unknown> | undefined
input?
Section titled “input?”Record<string, unknown>
options?
Section titled “options?”ResolveOptions & EvaluateOptions = {}
Returns
Section titled “Returns”Promise<boolean>