19#include <bsoncxx/types.hpp>
20#include <bsoncxx/stdx/optional.hpp>
21#include <mongocxx/result/bulk_write.hpp>
22#include <mongocxx/stdx.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
61 stdx::optional<bsoncxx::document::element>
upserted_id()
const;
68MONGOCXX_INLINE_NAMESPACE_END
71#include <mongocxx/config/postlude.hpp>
Class representing the result of a MongoDB bulk write operation.
Definition bulk_write.hpp:34
Class representing the result of a MongoDB update operation.
Definition update.hpp:31
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
stdx::optional< bsoncxx::document::element > upserted_id() const
If a document was upserted during this operation, gets the _id of the upserted document.
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.
const result::bulk_write & result() const
Returns the bulk write result for this update operation.