[CXX-1829] Concise syntax for accessing BSON Created: 08/Oct/19  Updated: 24/Jul/20  Resolved: 24/Jul/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kevin Albertson Assignee: Clyde Bazile III (Inactive)
Resolution: Done Votes: 0
Labels: internal-woes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX-2082

 Description   

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>()


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