Skip to content

indexedEqCheck

indexedEqCheck<S, F>(props): AccessCheck<S>

Defined in: packages/core/src/access/buildChecks.ts:93

Builds a read check narrowed to field === value, pushed into that field’s index.

S extends string

Resource slug, inferred from props.resource.

F extends string

Field name, constrained to S’s index-leading fields.

Input props.

F

Field to compare, completed from S’s indexed fields.

AccessResourceRef<S>

The resource this check governs.

AccessFieldValueFor<S, F>

Value to match, typed from S’s document.

AccessCheck<S>

A check assignable to permissions[role][S].read.