SortOptionDsl
DSL to describe a sort order.
This DSL declares the methods ascending and descending which describe in which order elements are sorted.
For example,
ascending(User::name)
descending(User::age)will sort users in alphabetical order of their name, and when users have the same name, will sort them in decreasing order of their age.
See WithSort.sort.
Functions
Adds a new node as a child of this one.
Adds any number of nodes into this one.
If two documents have a different value of field, the one with greater value will be returned first.
Refers to child as a nested field of the current field.
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.
Returns a simplified (but equivalent) expression to the current expression.
Writes the result of simplifying to a new BSON document.
Writes the result of simplifying this expression into writer.