AccessFn
AccessFn<
R> = (ctx,record?,input?) =>AccessResult|Promise<AccessResult>
Defined in: packages/schema/src/access/types.ts:53
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. A rule that reads the record or
input when called without them, or throws a TypeError, marks the operation as record-checked;
a list is then refused, since it does not run the rule on each row.
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>