20#include <bsoncxx/array/value.hpp>
21#include <bsoncxx/types.hpp>
22#include <mongocxx/result/bulk_write.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
39 using id_map = std::map<std::size_t, bsoncxx::document::element>;
76 MONGOCXX_PRIVATE
void _buildInsertedIds();
92MONGOCXX_INLINE_NAMESPACE_END
95#include <mongocxx/config/postlude.hpp>
A read-only BSON array that owns its underlying buffer.
Definition value.hpp:34
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:83
Class representing the result of a MongoDB bulk write operation.
Definition bulk_write.hpp:34
Class representing the result of a MongoDB insert many operation (executed as a bulk write).
Definition insert_many.hpp:37
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
const result::bulk_write & result() const
Returns the bulk write result for this insert many operation.
id_map inserted_ids() const
Gets the _ids of the inserted documents.
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24