userver: storages::mongo::options::Hint Class Reference
Loading...
Searching...
No Matches
storages::mongo::options::Hint Class Reference

Specifies an index to use for the query. More...

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

Public Member Functions

 Hint (std::string index_name)
 Specifies an index by name.
 
 Hint (formats::bson::Document index_spec)
 Specifies an index by fields covered.
 

Detailed Description

Specifies an index to use for the query.

Warning
Only plans using the index will be considered.

Definition at line 230 of file options.hpp.


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