156#include <mongocxx/config/postlude.hpp>
replace_one(bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement)
Constructs an update operation that will replace a single document matching the filter.
bsoncxx::v_noabi::document::view_or_value const & filter() const
Gets the filter for replacement.
replace_one & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this replacement operation.
replace_one & sort(bsoncxx::v_noabi::document::view_or_value sort)
Set the sort option.
replace_one(bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement)
Constructs an update operation that will replace a single document matching the filter.
bsoncxx::v_noabi::document::view_or_value const & replacement() const
Gets the replacement document.
replace_one & hint(mongocxx::v_noabi::hint index_hint)
Sets the index to use for this operation.
replace_one & upsert(bool upsert)
Sets the upsert option.
Provides bsoncxx::v_noabi::document::view_or_value.
Provides mongocxx::v_noabi::hint.
Declares mongocxx::v_noabi::model::replace_one.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing bulk write operations.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides std::optional-related polyfills for library API usage.