Skip to content

MongoEmitContext

MongoEmitContext = object

Context passed to Mongo function handlers so they can recurse into the translator and build filter objects without access to internals.

caseInsensitive: boolean

Whether case-insensitive matching is enabled.

emit(expr): MongoFilter

Translate a sub-expression into a MongoFilter object.

Expr

MongoFilter


fieldPath(expr): string

Resolve a field reference expression to a dotted path string e.g. “address.city”.

Expr

string