17#include <bsoncxx/document/view_or_value.hpp>
19#include <mongocxx/config/prelude.hpp>
22MONGOCXX_INLINE_NAMESPACE_BEGIN
50MONGOCXX_INLINE_NAMESPACE_END
53#include <mongocxx/config/postlude.hpp>
Class representing a MongoDB insert operation that creates a single document.
Definition insert_one.hpp:28
insert_one(bsoncxx::document::view_or_value document)
Constructs an insert operation that will create a single document.
const bsoncxx::document::view_or_value & document() const
Gets the document to be inserted.