UnsetStageOperators
The operators allowed in an $unset stage.
Properties
Functions
The absolute value of a number.
Returns the average of the elements in the array.
The smallest integer greater than or equal to the specified value.
Concatenates strings together.
Decides between two values depending on the evaluation of a boolean value.
Divides one aggregation value by another.
Refers to field as a nested field of the current value.
Refers to child as a nested field of the current field.
Compares two aggregation values and returns true if they are equivalent.
Selects a subset of an array to return based on the specified predicate, similarly to Kotlin's filter.
The largest integer less than or equal to the specified value.
Makes this expression immutable.
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
Applies a transform to all elements in an array and returns the array with the applied results, similar to kotlin.collections.map.
Subtracts one aggregation value from another.
Compares two aggregation values and returns true if they are not equivalent.
Refers to a Kotlin value within an aggregation value.
Refers to a field within an aggregation value.
Refers to a BsonType within an aggregation value.
Sums two aggregation values.
Replaces all instances of find with a replacement string.
Replaces the first instance of find with a replacement string.
Returns a simplified (but equivalent) expression to the current expression.
Sorts an array based on its elements, in ascending order.
Sorts an array based on fields of its elements.
Sorts an array based on its elements, in descending order.
Divides a string into an array of substrings based on a delimiter.
Returns the substring of a string.
Returns the substring of a string.
Selects one value based on multiple conditions.
Returns the first limit elements in an array, similar to kotlin.collections.take.
Returns the last limit elements in an array, similar to kotlin.collections.takeLast.
Multiplies two or more aggregation values.
Writes the result of simplifying to a new BsonDocument.
Converts this value to a BsonType.Double.
Converts this value to an Int (BsonType.Int32).
Converts this value to an Long (BsonType.Int64).
Removes whitespace characters, including null, or the specified characters from the beginning and end of a string.
Removes the specified characters from the beginning and end of a string.
Removes whitespace characters, including null, or the specified characters from the end of a string.
Removes the specified characters from the end of a string.
Removes whitespace characters, including null, or the specified characters from the beginning of a string.
Removes the specified characters from the beginning of a string.
Writes the result of simplifying this expression into writer.