Skip to content

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.

AccessSource

Omit<AccessContext, "model" | "operation" | "record">

AccessAction

Record<string, unknown> | undefined

Record<string, unknown>

ResolveOptions & EvaluateOptions = {}

Promise<boolean>