MongoDB C++ Driver  mongocxx-3.0.1
Public Member Functions | List of all members
mongocxx::result::insert_one Class Reference

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

#include <insert_one.hpp>

Public Member Functions

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

Detailed Description

Class representing the result of a MongoDB insert operation.

Member Function Documentation

const bsoncxx::types::value& mongocxx::result::insert_one::inserted_id ( ) const

Gets the _id of the inserted document.

Returns
The value of the _id field for inserted document.
const result::bulk_write& mongocxx::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: