Skip to content

VexWhereNodeOf

VexWhereNodeOf<TDoc> = { field: ConstraintField<TDoc>; op: FilterOp; value: ConstraintValue<TDoc, ConstraintField<TDoc>>; } | { and: readonly VexWhereNodeOf<TDoc>[]; } | { or: readonly VexWhereNodeOf<TDoc>[]; } | { not: VexWhereNodeOf<TDoc>; }

Defined in: packages/core/src/access/queryConstraintTypes.ts:131

The plain, JSON-serializable form of a where predicate over TDoc: a comparison leaf, or an and / or / not of nodes. The same predicate the where builder (FilterConstraintBuilder) records, with friendlier keys. Accepted by find / search’s where (as VexWhereNode<S>) and by an access rule’s where property.

TDoc

Document shape field names and values are typed from.