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.
Type Parameters
Section titled “Type Parameters”S extends string
Resource slug, inferred from props.resource.
F extends string
Field name, constrained to S’s index-leading fields.
Parameters
Section titled “Parameters”Input props.
F
Field to compare, completed from S’s indexed fields.
resource
Section titled “resource”The resource this check governs.
AccessFieldValueFor<S, F>
Value to match, typed from S’s document.
Returns
Section titled “Returns”AccessCheck<S>
A check assignable to permissions[role][S].read.