Skip to content

Variable: SIMPLE_LOOKUPS

const SIMPLE_LOOKUPS: readonly ["startswith", "contains", "icontains", "gt", "gte", "lt", "lte", "in", "nin", "exists", "isnull", "range"]

Defined in: src/query/lookup-registry.ts:6

The set of field__lookup operators DORM recognizes. Acts as an allowlist: a trailing __token is only treated as an operator if it appears here, which prevents arbitrary MongoDB operators from being smuggled through filter keys.

Released under the MIT License.