I want to insert BSON object from C++ to mongodb gridfs. I cannot find useful doc. about c++ gridfs API. Can you give an example how to insert or update BSON object on gridfs structure in c++. Suppose that i have a collection given below;
{ "_id" : "123", "data" : [ { "C1" : "value1","C2" : "value1"}] }
How can i insert this as gridfs in mongodb? P.S.: I tried to insert data as collections, but i got error because the document exceeds the file size limit.(document to be inserted exceeds maxBsonObjectSize) E.g. in the document above, the "data" array has sometimes more than 500.000 rows and with more columns. Thanks in advance