UnwindStageOperators
Operators of the unwind stage.
Properties
The context used to generate this expression.
Returns the day of the month for a date as a number between 1 and 31.
Returns the day of the week in ISO 8601 format, ranging from 1 (for Monday) to 7 (for Sunday).
Returns the day of the week for a date as a number between 1 (Sunday) and 7 (Saturday).
Returns the day of the year for a date as a number between 1 and 366.
Returns the hour portion of a date as a number between 0 and 23.
Returns the millisecond portion of a date as a number between 0 and 999.
Returns the month of a date as a number between 1 and 12.
Returns the year portion of a date.
Returns the year in ISO 8601 format, corresponding to the ISO week number returned by weekISO.
Functions
The absolute value of a number.
The inverse cosine (arc cosine) of a value, in radians.
The inverse hyperbolic cosine (hyperbolic arc cosine) of a value, in radians.
The array to be unwound.
The inverse sine (arc sine) of a value, in radians.
The inverse hyperbolic sine (hyperbolic arc sine) of a value, in radians.
The inverse tangent (arc tangent) of a value, in radians.
The inverse hyperbolic tangent (hyperbolic arc tangent) of a value, in radians.
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.
The cosine of a value that is measured in radians.
The hyperbolic cosine of a value that is measured in radians.
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 node immutable.
Refers to a specific item in an array, by its index.
Refers to a child field of a field of type BsonDocument.
Refers to a specific item in a map, by its name.
Refers to a child item of a field of type BsonArray.
Refers to a root field of the document being analyzed.
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.
Controls the behavior of this stage when encountering missing fields, null and empty arrays.
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.
The sine of a value that is measured in radians.
The hyperbolic sine of a value that is measured in radians.
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.
The tangent of a value that is measured in radians.
The hyperbolic tangent of a value that is measured in radians.
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.
A field in which the index of the array item will be written.
Writes the result of simplifying this expression into writer.