MongoDB C++ Driver 4.1.0
|
#include <mongocxx/v_noabi/mongocxx/result/replace_one.hpp>
The result of a MongoDB replaceOne operation.
Public Member Functions | |
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. | |
result::bulk_write const & | result () const |
Returns the bulk write result for this replace_one operation. | |
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::element > | upserted_id () const |
Gets the id of the upserted document. | |
std::int32_t mongocxx::v_noabi::result::replace_one::matched_count | ( | ) | const |
Gets the number of documents that were matched during this operation.
std::int32_t mongocxx::v_noabi::result::replace_one::modified_count | ( | ) | const |
Gets the number of documents that were modified during this operation.
result::bulk_write const & mongocxx::v_noabi::result::replace_one::result | ( | ) | const |
Returns the bulk write result for this replace_one operation.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::element > mongocxx::v_noabi::result::replace_one::upserted_id | ( | ) | const |
Gets the id of the upserted document.