userver: storages::mongo::options::Sort Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::mongo::options::Sort Class Reference

Your opinion will help to improve our service

Leave a feedback >

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

Detailed Description

Sorts the results.

Definition at line 203 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.
 
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: