assertOperators
assertOperators(
where,supported,adapterName):void
Defined in: query-operators.ts:12
Validate that every $-prefixed operator in a where clause is supported by the
adapter translating it. Recurses into $or/$and arrays and per-field operator
objects. Throws BadRequest naming the offending operator, the adapter, and the
full supported set — for an agent the error text is the documentation.
Adapters call this at the top of their where-clause translators so an unsupported operator fails loud instead of silently corrupting results.
Parameters
Section titled “Parameters”Record<string, unknown>
supported
Section titled “supported”ReadonlySet<string>
adapterName
Section titled “adapterName”string
Returns
Section titled “Returns”void