PushSortDsl
DSL for sorting elements during a $push operation.
See push and PushBuilder.sort.
Functions
Link copied to clipboard
Adds a new node as a child of this one.
Link copied to clipboard
Adds any number of nodes into this one.
Link copied to clipboard
Link copied to clipboard
If two documents have a different value of field, the one with greater value will be returned first.
Sort array elements in descending order (for simple values, not documents).
Link copied to clipboard
open operator fun <Root, Parent, Child> KProperty1<Root, Parent>.div(child: KProperty1<Parent & Any, Child>): Field<Root, Child>
open operator fun <Root, Type, Child> Field<Root, Type>.div(child: KProperty1<in Type & Any, Child>): Field<Root, Child>
open operator fun <Root, Type, Child> Field<Root, Type>.div(child: Field<Type, Child>): Field<Root, Child>
Refers to child as a nested field of the current field.
Link copied to clipboard
Makes this expression immutable.
Link copied to clipboard
open operator fun <Root, Type> KProperty1<Root, Collection<Type>>.get(index: Int): Field<Root, Type>
Refers to a specific item in an array, by its index.
open operator fun <Root, Type> KProperty1<Root, Map<String, Type>>.get(index: String): Field<Root, Type>
Refers to a specific item in a map, by its name.
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new BsonDocument.
Link copied to clipboard
Link copied to clipboard
Writes the result of simplifying this expression into writer.