MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongocxx::v_noabi::model::insert_one Class Reference

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.
 
const bsoncxx::v_noabi::document::view_or_valuedocument () const
 Gets the document to be inserted.
 

Detailed Description

Class representing a MongoDB insert operation that creates a single document.

Constructor & Destructor Documentation

◆ insert_one()

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.

Parameters
documentThe document to insert.

Member Function Documentation

◆ document()

const bsoncxx::v_noabi::document::view_or_value & mongocxx::v_noabi::model::insert_one::document ( ) const

Gets the document to be inserted.

Returns
The document to be inserted.

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