19 #include <mongocxx/result/update-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>
69 stdx::optional<bsoncxx::v_noabi::document::element>
upserted_id()
const;
74 friend MONGOCXX_API
bool MONGOCXX_CALL operator==(
const update&,
const update&);
75 friend MONGOCXX_API
bool MONGOCXX_CALL operator!=(
const update&,
const update&);
82 #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 update operation.
Definition: update.hpp:33
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
const result::bulk_write & result() const
Returns the bulk write result for this update operation.
stdx::optional< bsoncxx::v_noabi::document::element > upserted_id() const
If a document was upserted during this operation, gets the _id of the upserted document.
std::int32_t upserted_count() const
Gets the number of documents that were upserted during this operation.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19