MongoDbLibraryContext
Safe MongoDB filter operations available to one translation-library function.
Methods
Section titled “Methods”callOperands()
Section titled “callOperands()”callOperands(
expression): readonlyExpr[]
Resolves a member-call receiver and arguments in CEL operand order.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”readonly Expr[]
constantValue()
Section titled “constantValue()”constantValue(
expression):Value
Converts an expression that must be a supported CEL constant.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”Value
fieldOperator()
Section titled “fieldOperator()”fieldOperator(
path,operator,value):Value
Creates one structured field-operator predicate from trusted library syntax.
Parameters
Section titled “Parameters”string
operator
Section titled “operator”string
Value
Returns
Section titled “Returns”Value
fieldOperators()
Section titled “fieldOperators()”fieldOperators(
path,entries):Value
Creates one structured field predicate from a fixed set of trusted operators.
Parameters
Section titled “Parameters”string
entries
Section titled “entries”readonly readonly [string, Value][]
Returns
Section titled “Returns”Value
fullTextSearch()
Section titled “fullTextSearch()”fullTextSearch(
expression):Value
Translates a bounded $text search over the collection’s single text index.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”Value
geoIntersects()
Section titled “geoIntersects()”geoIntersects(
expression):Value
Translates intersection of a stored position with a constant polygon.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”Value
geoWithin()
Section titled “geoWithin()”geoWithin(
expression):Value
Translates closed containment of a stored position in a constant polygon.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”Value
geoWithinDistance()
Section titled “geoWithinDistance()”geoWithinDistance(
expression):Value
Translates a great-circle distance bound between a stored position and a constant.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”Value
queryFieldPath()
Section titled “queryFieldPath()”queryFieldPath(
expression):string
Resolves an expression that must be a safe MongoDB query field path.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr
Returns
Section titled “Returns”string
unsupportedExpression()
Section titled “unsupportedExpression()”unsupportedExpression(
expression):CelqlError
Rejects a library expression that violates its documented input domain.
Parameters
Section titled “Parameters”expression
Section titled “expression”Expr