Skip to content

QueryConstraint

Defined in: packages/core/src/access/evaluateQueryConstraint.ts:23

One rule’s resolved constraint for one caller. compileQueryConstraints.ts, resolveAccessRule.ts and hasPermission.ts consume it.

TDoc

Document shape the recorded values are typed against.

optional index?: object

Defined in: packages/core/src/access/evaluateQueryConstraint.ts:25

The index half, when the rule’s withIndex produced a selection.

constraints: readonly QueryIndexConstraint<string, TDoc>[]

name: string


optional where?: QueryFilterConstraint<TDoc>

Defined in: packages/core/src/access/evaluateQueryConstraint.ts:27

The predicate half, when the rule’s where produced a predicate.