Skip to content

AccessPredicateBuilder

Defined in: packages/core/src/access/constraintTypes.ts:314

The q a rule on a NON-query action receives: predicates only.

The same authoring shape as AccessQueryBuilder minus withIndex, so a rule reads identically whichever action it guards — q.filter((f) => …) either way. A create/update/delete has no query to narrow, so index pushdown is simply absent rather than rejected, and q.withIndex fails at the call with a missing-method error rather than as a whole-object shape mismatch (DD 14).

TDoc

Document shape for the resource this rule governs.

filter(predicate): AccessConditionResult

Defined in: packages/core/src/access/constraintTypes.ts:321

Narrows by predicate.

(q) => ConstraintResult

Builds the expression from the flat filter algebra.

AccessConditionResult

The completed condition.