AccessFn
AccessFn<
R> = (ctx,record?,input?) =>AccessResult|Promise<AccessResult>
Defined in: packages/schema/src/access/types.ts:44
A rule at the resource level. Without a record it decides the operation and may return a row
filter; with (ctx, record, input) it is a record-level check. Rules that need the record
may throw a TypeError when it is missing, which marks the operation as record-checked.
Type Parameters
Section titled “Type Parameters”R = any
Parameters
Section titled “Parameters”record?
Section titled “record?”R
input?
Section titled “input?”Partial<R>
Returns
Section titled “Returns”AccessResult | Promise<AccessResult>