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

Replace use of index options in API with BSON document

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      Currently, we use mongocxx::options::index to pass options to our index-related API methods. This has the downside of requiring changes whenever the server begins supporting new options. To mitigate this, we should change the index-related API methods to take a BSON document rather than an options object. As part of the work, we should implement a cast operator to bsoncxx::document::value for mongocxx::options::index to enable existing code to continue working.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: