Questions tagged [mongo-cxx-driver]

Officially supported C++ driver for MongoDB

The MongoDB C++ Driver is an officially supported driver for MongoDB. It is written in C++11. It wraps the MongoDB C Driver.

More information:

259 questions
-1
votes
2 answers

Can't add element to bsoncxx document

Can't add an element to bsoncxx document auto doc = bsoncxx::builder::basic::document{}; const char* key = "asd"; const char* value = "123"; doc.append(kvp(key,…
Alex
  • 7
  • 2
-1
votes
1 answer

Why is there an access violation on connecting to MongoDB from C++?

When I try to run this little piece of code #include #include #include #include #include int main(int argc, char **argv) { …
Shinji Ikari
  • 173
  • 1
  • 12
-2
votes
1 answer

How to inserta nd retreive Multidimension array with static data in it into database using **insert** function of mongo-cxx-driver?

I tried the conventional way of passing an array to a wrapper function in which I'm using insertOne to insert data using for loop. No build issues, but while running, I'm hitting this error: Microsoft C++ exception:…
T.Nirupama
  • 11
  • 1
-5
votes
1 answer

Mongodb query equivalent of the following SQL query

I have a table as UserData which has strucure like id category value 1 AR 100 2 WT 90 3 WT 12 4 AR 1000 5 AR 2005 6 WT 122 7 BP 112 8 BP 18 now I want to…
Learner
  • 1,277
  • 3
  • 15
  • 34
1 2 3
17
18