#include <userver/storages/mongo/options.hpp>
Sorts the results.
Definition at line 201 of file options.hpp.
Public Types | |
enum | Direction { kAscending , kDescending } |
Public Member Functions | |
Sort ()=default | |
Creates an empty ordering specification. | |
Sort (std::initializer_list< std::pair< std::string_view, Direction > >) | |
Stores the specified ordering specification. | |
Sort & | By (std::string_view field, Direction direction) |
Appends a field to the ordering specification. | |
enum storages::mongo::options::Sort::Direction |
Definition at line 203 of file options.hpp.