Hello! In a 3-node replicaset, when I stop two nodes remaining one switches to SECONDARY.
Is there a way to force it back into primary without reinitializing the replication?
what is the recommended option to serialize / deserialize Java objects to/from MongoDB java driver Document objects ?
do I have to manually write the serializing and deserializing method for a class?
and manually create and put/read the values?
Hi, I'm trying to compile mongo-cxx-driver on Windows 10 64bit using Visual Studio. Libbson and mongo-c-driver compiles fine but mongo-cxx-driver compilation gives the error message: "fatal error C1083: Cann open include file: 'bson.h': No such file or directory". Is there anything else I need to set manually?
Do I have to manually include libbson header files in CMakeLists.txt of mongo-cxx?
I was wondering if anyone can help me with writing a script for the mongo shell. I'm trying to run the code here: https://github.com/vasansr/pro-mern-stack/blob/master/scripts/init.mongo.js but it doesn't seem to be working for me
is there any way to get query logging from mongodb?
crayon: yes, it's called profiling
you can set it so that it logs every query
thank you SO much Derick