19 #include <mongocxx/result/replace_one-fwd.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/types.hpp>
23 #include <mongocxx/result/bulk_write.hpp>
24 #include <mongocxx/stdx.hpp>
26 #include <mongocxx/config/prelude.hpp>
64 stdx::optional<bsoncxx::v_noabi::document::element>
upserted_id()
const;
77 #include <mongocxx/config/postlude.hpp>
Class representing the result of a MongoDB bulk write operation.
Definition: bulk_write.hpp:36
Class representing the result of a MongoDB replace_one operation.
Definition: replace_one.hpp:33
const result::bulk_write & result() const
Returns the bulk write result for this replace_one operation.
stdx::optional< bsoncxx::v_noabi::document::element > upserted_id() const
Gets the id of the upserted document.
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19