Server connection with MongoDB C++ Interface
10 views (last 30 days)
According to the documentation of new mongodb c++ interface, a server name is required to connect a mongodb server. The format of the connection link for mongodb is below:
I have a <cluster-url> like this;
For server name, I have tried every combination of this string, but I can not connect. I have also tried to look into the connect function but apperantly it is encrypted.
How can I connect to a mongodb server using mongoc function?