MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::result::insert_one Class Reference

#include <mongocxx/v_noabi/mongocxx/result/insert_one.hpp>

Description

Class representing the result of a MongoDB insert operation.

Public Member Functions

const bsoncxx::v_noabi::types::bson_value::viewinserted_id () const
 Gets the _id of the inserted document.
 
const result::bulk_writeresult () const
 Returns the bulk write result for this insert operation.
 

Member Function Documentation

◆ inserted_id()

const bsoncxx::v_noabi::types::bson_value::view & mongocxx::v_noabi::result::insert_one::inserted_id ( ) const

Gets the _id of the inserted document.

Returns
The value of the _id field for the inserted document.

◆ result()

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

Returns the bulk write result for this insert operation.

Returns
The raw bulk write result.

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