All Questions
502 questions
0
votes
0
answers
29
views
MongoCXX connection (to Atlas) over SOCKS5 proxy
We have a Mongo Atlas DB server that we're trying to connect to from a server that has a SOCKS5 proxy installed.
I'm able to test the connection via the proxy through mongosh using the proxyHost and ...
3
votes
0
answers
61
views
How to use the mongodb.natvis with the mongocxx c++ lib
Using vcpkg I have compiled the mongo c++ lib "mongo-cxx-driver" https://github.com/mongodb/mongo-cxx-driver
while debugging i can see that it have added a "v_noabi" namespace ...
3
votes
0
answers
67
views
Building MongoDB C++ Driver from VCPKG with C++17 or later and no polyfills
It seems that the mongo-cxx-driver VCPKG package cannot be built without the C++17 polyfills, so when you install the MongoDB C++ driver from VCPKG, you are forced to use non-standard implementations ...
0
votes
1
answer
98
views
How to resolve mongocxx driver parse error?
Installed mongocxx driver version 3.10.1 on linux using tarball from github(also installed mongo-c driver version 1.27.5).
For installation i used below commands for mongo-c driver:
tar -xzf mongo-c-...
0
votes
0
answers
39
views
Can't Build Query Mongocxx C++
I am trying using MONGO DB C++ driver, and I am trying search my database if there is a field that equals a specific string.
The following code below works (implying I have mongoDB C++ drivers for ...
0
votes
1
answer
62
views
How to overcome the incompatibiliy of `b_null` with other types in the bsoncxx library?
It's my understanding that null is the state of a value, and not the type of an value within the MongoDB ecosystem. That is an element should have a key that maps to a certain type of value, and that ...
-1
votes
1
answer
143
views
mongo-cxx-driver, where are the implementations of bson_value::view::get_string() and document::element::get_string()?
I did a grep and only see ... get_string const; declarations for both functions, no actual implementation in any hpp or cpp files in github.com/mongo-cxx-driver/src. Did anyone know where they live?
1
vote
0
answers
50
views
Cursor exhausted when code using mongocxx is refactored into two functions instead of one
The following for_each method successfully connects through to the database, and the cursor allows it to loop through all the documents in the collection.
My aim is to refactor the "connecting to ...
0
votes
1
answer
846
views
Mongo CXX Driver: 'core/optional.hpp' file not found
Did anybody have any luck using the official MongoDB C++ driver on Mac OS X? I'm using an Apple Silicon Mac and I've tried including both the library installed via brew install mongo-cxx-driver and ...
2
votes
1
answer
299
views
configure driver mongocxx on linux mint
i begin a new projet in c++ with Qt and i want to use mongodb,
i have installed mongo and the libs but when i want to configure the driver "mongo-cxx-driver-r3.9.0", i have a problem on the ...
1
vote
0
answers
67
views
Can't compile Mongodb and Qt with cmake
I have cmake file
cmake_minimum_required(VERSION 3.5)
project(CmakeCBT VERSION 0.1 LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(...
0
votes
0
answers
85
views
Mongocxx compiling issue on windows
I'm trying to compile a simple .cpp using the mongocxx lib. This is my code string_tests.cpp:
#include <iostream>
#include <mongocxx/instance.hpp>
using namespace std;
using namespace ...
0
votes
1
answer
111
views
How to count the documents returned from collection.find(filter) in mongocxx? cursor object does NOT have a .count() method
The following C++ code written using mongocxx returns a cursor.
bsoncxx::document::value filter = make_document(...some document...);
auto cursor {coll.find(filter.view())}; // coll is the collection ...
0
votes
0
answers
74
views
Can'd find the required library (shared or static) to resolve undefined references
Just tried the following code similar to mongocxx C++ API Sample
#include <iostream>
#include <mongocxx/instance.hpp>
#include <mongocxx/uri.hpp>
#include <mongocxx/client.hpp>...
-1
votes
1
answer
93
views
"bsoncxx::document is ambiguous." error while using C++ Mongodb driver 3.7.1
I am developing software based on C++ Mongodb driver 3.7.1 version.
I'm confronting a compiler error:
bsoncxx::document is ambiguous
in hint.hpp, client_session.hpp,'change_stream.hpp' and ...