#include <mongocxx/v_noabi/mongocxx/model/insert_one.hpp>
A MongoDB insert operation that creates a single document.
Public Member Functions | |
| insert_one (bsoncxx::v_noabi::document::view_or_value document) | |
| Constructs an insert operation that will create a single document. | |
| insert_one (v1::bulk_write::insert_one op) | |
| Construct with the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::document::view_or_value const & | document () const |
| Gets the document to be inserted. | |
| operator v1::bulk_write::insert_one () const | |
| Convert to the mongocxx::v1 equivalent. | |
|
inline |
Construct with the mongocxx::v1 equivalent.
|
inline |
Constructs an insert operation that will create a single document.
| document | The document to insert. |
|
inline |
Gets the document to be inserted.
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.