C++ Driver: writing an array of strings into a BSON Array
56 views
Skip to first unread message
creatiwit
unread,
May 22, 2012, 3:40:42 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
I can surely use append and iterate through the entire vector but is there a simpler way to just the pass the entire vector and have it converted to a BSON Array ?
Randolph Tan
unread,
May 22, 2012, 5:18:04 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
The BSONObjBuilder class has an overload for append that accepts vector objects.