#include <mongocxx/v_noabi/mongocxx/result/replace_one.hpp>
The result of a MongoDB replaceOne operation.
Public Member Functions | |
| replace_one (v1::replace_one_result opts) | |
| Construct with the mongocxx::v1 equivalent. | |
| replace_one (v_noabi::result::bulk_write result) | |
| 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. | |
| operator v1::replace_one_result () const | |
| Convert to the mongocxx::v1 equivalent. | |
| v_noabi::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. | |
|
inlineexplicit |
| mongocxx::v_noabi::result::replace_one::replace_one | ( | v1::replace_one_result | opts | ) |
Construct with the mongocxx::v1 equivalent.
|
inline |
Gets the number of documents that were matched during this operation.
|
inline |
Gets the number of documents that were modified during this operation.
|
explicit |
Convert to the mongocxx::v1 equivalent.
|
inline |
Returns the bulk write result for this replace_one operation.
|
inline |
Gets the id of the upserted document.