20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <mongocxx/cursor.hpp>
24 #include <mongocxx/hint.hpp>
25 #include <mongocxx/read_preference.hpp>
27 #include <mongocxx/config/prelude.hpp>
30 MONGOCXX_INLINE_NAMESPACE_BEGIN
47 find& allow_partial_results(
bool allow_partial);
56 const stdx::optional<bool>& allow_partial_results()
const;
66 find& batch_size(std::int32_t batch_size);
75 const stdx::optional<std::int32_t>& batch_size()
const;
97 const stdx::optional<bsoncxx::document::view_or_value>& collation()
const;
117 const stdx::optional<bsoncxx::string::view_or_value>& comment()
const;
127 find& cursor_type(cursor::type cursor_type);
136 const stdx::optional<cursor::type>& cursor_type()
const;
156 const stdx::optional<class hint>& hint()
const;
164 find& limit(std::int32_t limit);
171 const stdx::optional<std::int32_t>& limit()
const;
190 const stdx::optional<bsoncxx::document::view_or_value>& max()
const;
205 find& max_await_time(std::chrono::milliseconds max_await_time);
213 const stdx::optional<std::chrono::milliseconds>& max_await_time()
const;
223 find& max_scan(std::int32_t max);
233 const stdx::optional<std::int32_t>& max_scan()
const;
243 find& max_time(std::chrono::milliseconds max_time);
252 const stdx::optional<std::chrono::milliseconds>& max_time()
const;
271 const stdx::optional<bsoncxx::document::view_or_value>& min()
const;
298 const stdx::optional<bsoncxx::document::view_or_value>& modifiers()
const;
309 find& no_cursor_timeout(
bool no_cursor_timeout);
318 const stdx::optional<bool>& no_cursor_timeout()
const;
337 const stdx::optional<bsoncxx::document::view_or_value>& projection()
const;
357 const stdx::optional<class read_preference>& read_preference()
const;
369 find& return_key(
bool return_key);
381 const stdx::optional<bool>& return_key()
const;
391 find& show_record_id(
bool show_record_id);
402 const stdx::optional<bool>& show_record_id()
const;
412 find& skip(std::int32_t skip);
421 const stdx::optional<std::int32_t>& skip()
const;
431 find& snapshot(
bool snapshot);
440 const stdx::optional<bool>& snapshot()
const;
460 const stdx::optional<bsoncxx::document::view_or_value>& sort()
const;
465 MONGOCXX_PRIVATE
find& modifiers_clear();
468 stdx::optional<bool> _allow_partial_results;
469 stdx::optional<std::int32_t> _batch_size;
470 stdx::optional<bsoncxx::document::view_or_value> _collation;
471 stdx::optional<bsoncxx::string::view_or_value> _comment;
472 stdx::optional<cursor::type> _cursor_type;
473 stdx::optional<class hint> _hint;
474 stdx::optional<std::int32_t> _limit;
475 stdx::optional<bsoncxx::document::view_or_value> _max;
476 stdx::optional<std::chrono::milliseconds> _max_await_time;
477 stdx::optional<std::int32_t> _max_scan;
478 stdx::optional<std::chrono::milliseconds> _max_time;
479 stdx::optional<bsoncxx::document::view_or_value> _min;
480 stdx::optional<bsoncxx::document::view_or_value> _modifiers;
481 stdx::optional<bool> _no_cursor_timeout;
482 stdx::optional<bsoncxx::document::view_or_value> _projection;
483 stdx::optional<class read_preference> _read_preference;
484 stdx::optional<bool> _return_key;
485 stdx::optional<bool> _show_record_id;
486 stdx::optional<std::int32_t> _skip;
487 stdx::optional<bool> _snapshot;
488 stdx::optional<bsoncxx::document::view_or_value> _ordering;
492 MONGOCXX_INLINE_NAMESPACE_END
495 #include <mongocxx/config/postlude.hpp>
Definition: bulk_write.hpp:22
Class representing the optional arguments to a MongoDB query.
Definition: find.hpp:36
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:35
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:57
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36