[CXX-888] Quick function / Bson Multiadd KVP in BSON Created: 07/Apr/16 Updated: 11/Sep/19 Resolved: 14/Sep/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | API |
| Affects Version/s: | 3.0.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Armin Ball [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hey there! Is there a faster way to do this?
thx! |
| Comments |
| Comment by Armin Ball [X] [ 12/Apr/16 ] |
|
Thank you for your time. |
| Comment by Matt Cotter [ 12/Apr/16 ] |
|
Hi Weltenbummler, I think this question was recently answered on the mongodb-user list. Please view the thread here: https://groups.google.com/forum/#!topic/mongodb-user/D7C5I4y-obY To paraphrase Jason's response, if you want to add new keys in the middle of the existing BSON object, you'll have to create a new builder. You can iterate through your current document, copy the keys and values over, and add the new fields you want when you get to the right spot. If that doesn't answer your question, please follow up on that same thread. Thanks! |
| Comment by Armin Ball [X] [ 09/Apr/16 ] |
|
Thx, |
| Comment by Andrew Morrow (Inactive) [ 07/Apr/16 ] |
|
Hi Weltenbummler - This kind of question is really better suited for the mongodb-user group: https://groups.google.com/forum/#!forum/mongodb-user Alternatively, if you like StackOverflow: http://stackoverflow.com/questions/tagged/mongo-cxx We will work on this issue in this ticket, but in the future, please use one of those channels for questions. If we find a bug or improvement as a result of that discussion then we can open a ticket here. |