[CXX-877] Have no idea how to add bsoncxx::document::value to another document Created: 24/Mar/16 Updated: 08/Jan/24 Resolved: 29/Mar/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pavel Odintsov | Assignee: | Matt Cotter |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Hello, folks! I'm using recent C++ driver (it's awesome)! But after deep reading of all examples I could not find any way how to add bsoncxx::document::value into existing document. I'm doing following:
But obvious try to add "details" as sub document failed:
Could you help me? There are no docs in examples folder about adding another document cooked somewhere else. |
| Comments |
| Comment by Githook User [ 29/Mar/16 ] | ||||||||||||||||||||||||
|
Author: {u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}Message: | ||||||||||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 24/Mar/16 ] | ||||||||||||||||||||||||
|
pavel.odintsov - Thanks! We are really excited about the new C++11 driver, and we really appreciate that you are filing tickets and asking questions - it helps us make the driver better for everyone. You are an early adopter! You might want to try posting to the mongodb-user group if you have questions going forward - we are monitoring that too will definitely answer questions posted there, but those questions and answers will get more visibility than a ticket that you file that only we see. Of course, if you have suggestion for enhancements, or real bugs or problems, filing them here definitely is the right thing to do. Or if your are happier filing JIRA tickets, that is of course fine too. | ||||||||||||||||||||||||
| Comment by Pavel Odintsov [ 24/Mar/16 ] | ||||||||||||||||||||||||
|
That's really cool! Thanks for lighting fast answer! To be honest I never saw anywhere else something like speed and involvement of MongoDB team Have implemented this!
| ||||||||||||||||||||||||
| Comment by Matt Cotter [ 24/Mar/16 ] | ||||||||||||||||||||||||
|
Hi pavel.odintsov, I opened a pull request to add an example for just that: https://github.com/mongodb/mongo-cxx-driver/pull/475 Best, | ||||||||||||||||||||||||
| Comment by Matt Cotter [ 24/Mar/16 ] | ||||||||||||||||||||||||
|
Pull request: https://github.com/mongodb/mongo-cxx-driver/pull/475 |