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
54 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
73 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
92 const stdx::optional<bsoncxx::document::view_or_value>&
projection()
const;
114 const stdx::optional<bsoncxx::document::view_or_value>&
sort()
const;
117 stdx::optional<bsoncxx::document::view_or_value> _collation;
118 stdx::optional<std::chrono::milliseconds> _max_time;
119 stdx::optional<bsoncxx::document::view_or_value> _projection;
120 stdx::optional<bsoncxx::document::view_or_value> _ordering;
124MONGOCXX_INLINE_NAMESPACE_END
127#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
find_one_and_delete & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this operation.
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
find_one_and_delete & 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.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
find_one_and_delete & sort(bsoncxx::document::view_or_value ordering)
Sets the order to search for a matching document.
find_one_and_delete & 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.