17#include <bsoncxx/document/view_or_value.hpp>
18#include <bsoncxx/stdx/optional.hpp>
19#include <mongocxx/stdx.hpp>
21#include <mongocxx/config/prelude.hpp>
24MONGOCXX_INLINE_NAMESPACE_BEGIN
76 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
98 const stdx::optional<bool>&
upsert()
const;
104 stdx::optional<bsoncxx::document::view_or_value> _collation;
105 stdx::optional<bool> _upsert;
109MONGOCXX_INLINE_NAMESPACE_END
112#include <mongocxx/config/postlude.hpp>
Class representing a MongoDB update operation that modifies a single document.
Definition update_one.hpp:30
const bsoncxx::document::view_or_value & filter() const
Gets the filter.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Gets the collation option for this update operation.
update_one(bsoncxx::document::view_or_value filter, bsoncxx::document::view_or_value update)
Constructs an update operation that will modify a single document matching the filter.
const stdx::optional< bool > & upsert() const
Gets the current value of the upsert option.
update_one & upsert(bool upsert)
Sets the upsert option.
update_one & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this update operation.
const bsoncxx::document::view_or_value & update() const
Gets the update document.
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:22