mongo-cxx-driver Questions

3

Solved

How to query MongoDB database using regex in c++. mongo-cxx-driver-r3.1.1 hear is include #include <cstdlib> #include <iostream> #include <bsoncxx/builder/stream/document.hpp>...
Dinky asked 1/11, 2017 at 5:59

2

I've got two questions that I cannot find an answer for in the tutorial. I get a document and then an element from the doc like this: bsoncxx::document::element e = doc["id"]; if (!e || e.type...
Cottontail asked 10/3, 2016 at 14:59

1

Solved

This is about the new MongoDB C++ Driver (not the legacy one). I can insert a document this way: value Value = document{} <<"Key" <<"Value" <<finalize; cxxClient["db"]["collecti...
Otto asked 25/11, 2016 at 4:16

1

Solved

I'm working with new c++11 mongoDB driver ( NOT the Legacy Driver ). I'm trying to get the 'id' of a document in mongoDB after I inserted a new document. This ID is in the returned value 'retVal3'...
Antilebanon asked 2/4, 2016 at 17:55
1

© 2022 - 2024 — McMap. All rights reserved.