[CXX-1359] Replace use of index options in API with BSON document Created: 06/Jun/17  Updated: 05/Jul/17  Resolved: 15/Jun/17

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Patrick Freed
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1364 Replace index mock tests with integra... Closed
Epic Link: CXX index management

 Description   

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.



 Comments   
Comment by Githook User [ 15/Jun/17 ]

Author:

{u'username': u'patrickfreed', u'name': u'Patrick Freed', u'email': u'fridpatrick@gmail.com'}

Message: CXX-1359 Replace use of index options in API with BSON document

This commit also adds a cast operator to mongocxx::options::index so existing code will still work.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/0f10af95486812dc64adfd1e0495c129409f67b5

Generated at Wed Feb 07 22:02:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.