-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
auto result = coll.bulk_write(bulk); std::cout << bsoncxx::to_json(result->inserted_ids());
fails with the exception
bsoncxx::v0::exception: unset document::element
at bsoncxx/document/element.cpp:79. The same occurs for result::bulk_write::upserted_ids(). The counts (inserted, deleted, etc) are all fine.