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).
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TDoc
Document shape for the resource this rule governs.
Methods
Section titled “Methods”filter()
Section titled “filter()”filter(
predicate):AccessConditionResult
Defined in: packages/core/src/access/constraintTypes.ts:321
Narrows by predicate.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(q) => ConstraintResult
Builds the expression from the flat filter algebra.
Returns
Section titled “Returns”The completed condition.