20#include <bsoncxx/document/view_or_value.hpp>
21#include <bsoncxx/stdx/optional.hpp>
22#include <mongocxx/write_concern.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
43 void max_time(std::chrono::milliseconds max_time);
52 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
71 const stdx::optional<bsoncxx::document::view_or_value>&
projection()
const;
93 const stdx::optional<bsoncxx::document::view_or_value>&
sort()
const;
96 stdx::optional<std::chrono::milliseconds> _max_time;
97 stdx::optional<bsoncxx::document::view_or_value> _projection;
98 stdx::optional<bsoncxx::document::view_or_value> _ordering;
102MONGOCXX_INLINE_NAMESPACE_END
105#include <mongocxx/config/postlude.hpp>
Class representing the optional arguments to a MongoDB find_and_modify delete operation.
Definition find_one_and_delete.hpp:33
void sort(bsoncxx::document::view_or_value ordering)
Sets the order to search for a matching document.
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
void projection(bsoncxx::document::view_or_value projection)
Sets a projection that limits the fields to return.
const stdx::optional< bsoncxx::document::view_or_value > & projection() const
Gets the current projection set on this operation.
void max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
const stdx::optional< bsoncxx::document::view_or_value > & sort() const
Gets the current sort ordering.