MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mongocxx::v_noabi::result::insert_one Class Reference

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

Description

The result of a MongoDB insert operation.

Public Member Functions

bsoncxx::v_noabi::types::bson_value::view const & inserted_id () const
 Gets the _id of the inserted document.
 
result::bulk_write const & result () const
 Returns the bulk write result for this insert operation.
 

Member Function Documentation

◆ inserted_id()

bsoncxx::v_noabi::types::bson_value::view const & 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()

result::bulk_write const & 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: