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.
Type Parameters
Section titled “Type Parameters”TDoc
Document shape the recorded values are typed against.
Properties
Section titled “Properties”index?
Section titled “index?”
optionalindex?:object
Defined in: packages/core/src/access/evaluateQueryConstraint.ts:25
The index half, when the rule’s withIndex produced a selection.
constraints
Section titled “constraints”constraints: readonly
QueryIndexConstraint<string,TDoc>[]
name:
string
where?
Section titled “where?”
optionalwhere?:QueryFilterConstraint<TDoc>
Defined in: packages/core/src/access/evaluateQueryConstraint.ts:27
The predicate half, when the rule’s where produced a predicate.