UnsetStageOperators
The operators allowed in an $unset
stage.
Functions
Returns the average of the elements in the array.
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.
Selects a subset of an array to return based on the specified predicate, similarly to kotlin.collections.filter.
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.
Refers to a Kotlin value within an aggregation value.
Refers to a BsonType within an aggregation value.
Refers to a field within an aggregation value.
Replaces all instances of find with a replacement string.
Replaces the first instance of find with a replacement string.
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.
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.
Writes the result of simplifying to a new Bson.
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.