Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-798

Printing the inserted IDs returned by a bulk_write throws

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • 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.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: