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

Concise syntax for accessing BSON

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

      Consuming a BSON object is also painful. Real example from code:

      op["u"].get_document().view()["$set"].get_document().view()["i"].get_int64()
      

      Reasonable alternative:

      op["u"]["$set"]["i"].as<int64_t>()
      

            Assignee:
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: