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

Implement `transform_document` helper

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None

      Because bsoncxx::document::value (and bsoncxx::document::view) are immutable, changing a field in a document requires building a new document from scratch, which is cumbersome (especially with deeply-nested fields). To facilitate creating copies of documents with changed fields, a `transform_document` function should be implemented.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: