MongoDB C++ Driver
mongocxx-3.10.2
|
Class representing a MongoDB insert operation that creates a single document. More...
#include <insert_one.hpp>
Public Member Functions | |
insert_one (bsoncxx::v_noabi::document::view_or_value document) | |
Constructs an insert operation that will create a single document. More... | |
const bsoncxx::v_noabi::document::view_or_value & | document () const |
Gets the document to be inserted. More... | |
Class representing a MongoDB insert operation that creates a single document.
mongocxx::v_noabi::model::insert_one::insert_one | ( | bsoncxx::v_noabi::document::view_or_value | document | ) |
Constructs an insert operation that will create a single document.
document | The document to insert. |
const bsoncxx::v_noabi::document::view_or_value& mongocxx::v_noabi::model::insert_one::document | ( | ) | const |
Gets the document to be inserted.