MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongocxx::v_noabi::result::replace_one Class Reference

Class representing the result of a MongoDB replace_one operation. More...

#include <replace_one.hpp>

Public Member Functions

const result::bulk_writeresult () const
 Returns the bulk write result for this replace_one operation.
 
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.
 
stdx::optional< bsoncxx::v_noabi::document::elementupserted_id () const
 Gets the id of the upserted document.
 

Detailed Description

Class representing the result of a MongoDB replace_one operation.

Member Function Documentation

◆ matched_count()

std::int32_t mongocxx::v_noabi::result::replace_one::matched_count ( ) const

Gets the number of documents that were matched during this operation.

Returns
The number of documents that were matched.

◆ modified_count()

std::int32_t mongocxx::v_noabi::result::replace_one::modified_count ( ) const

Gets the number of documents that were modified during this operation.

Returns
The number of documents that were modified.

◆ result()

const result::bulk_write & mongocxx::v_noabi::result::replace_one::result ( ) const

Returns the bulk write result for this replace_one operation.

Returns
The raw bulk write result.

◆ upserted_id()

stdx::optional< bsoncxx::v_noabi::document::element > mongocxx::v_noabi::result::replace_one::upserted_id ( ) const

Gets the id of the upserted document.

Returns
The value of the _id field for upserted document.

The documentation for this class was generated from the following file: