Skip to content

MongoDbLibraryContext

Safe MongoDB filter operations available to one translation-library function.

callOperands(expression): readonly Expr[]

Resolves a member-call receiver and arguments in CEL operand order.

Expr

readonly Expr[]


constantValue(expression): Value

Converts an expression that must be a supported CEL constant.

Expr

Value


fieldOperator(path, operator, value): Value

Creates one structured field-operator predicate from trusted library syntax.

string

string

Value

Value


fieldOperators(path, entries): Value

Creates one structured field predicate from a fixed set of trusted operators.

string

readonly readonly [string, Value][]

Value


fullTextSearch(expression): Value

Translates a bounded $text search over the collection’s single text index.

Expr

Value


geoIntersects(expression): Value

Translates intersection of a stored position with a constant polygon.

Expr

Value


geoWithin(expression): Value

Translates closed containment of a stored position in a constant polygon.

Expr

Value


geoWithinDistance(expression): Value

Translates a great-circle distance bound between a stored position and a constant.

Expr

Value


queryFieldPath(expression): string

Resolves an expression that must be a safe MongoDB query field path.

Expr

string


unsupportedExpression(expression): CelqlError

Rejects a library expression that violates its documented input domain.

Expr

CelqlError