createAccessQueryBuilder
createAccessQueryBuilder<
TDoc,TIndexFields>():AccessQueryBuilder<TDoc,TIndexFields>
Defined in: packages/core/src/access/createAccessQueryBuilder.ts:60
Creates the q a query-shaped rule receives.
Composes the two algebras without letting them mix: withIndex runs its range
callback against a fresh positional builder and reads the result; filter runs
its predicate callback against a fresh flat builder. Neither builder escapes its
callback, so an index expression can never reach a boolean combinator.
Pure, and only the returned value counts. Nothing accumulates outside a callback’s own return, so a rule that builds a chain and discards it contributes nothing — dead code behaves like dead code.
Type Parameters
Section titled “Type Parameters”TDoc
Document shape constraint values are typed from.
TIndexFields
Section titled “TIndexFields”TIndexFields extends Record<string, readonly string[]>
The resource’s index name → field tuple map.
Returns
Section titled “Returns”AccessQueryBuilder<TDoc, TIndexFields>
A builder whose withIndex / filter results carry the condition.