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
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
to mongod...@googlegroups.com
The BSONObjBuilder class has an overload for append that accepts vector objects.
Reply all
Reply to author
Forward
0 new messages