userver: storages::mongo::options::Sort Class Reference
No Matches
storages::mongo::options::Sort Class Reference

#include <userver/storages/mongo/options.hpp>

Detailed Description

Sorts the results.

Definition at line 203 of file options.hpp.

Public Types

enum  Direction {
  kAscending ,

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.
SortBy (std::string_view field, Direction direction)
 Appends a field to the ordering specification.

Member Enumeration Documentation

◆ Direction

enum storages::mongo::options::Sort::Direction

Definition at line 205 of file options.hpp.

The documentation for this class was generated from the following file: