Hi,
I want to connect to local atlas deployment, but I’m failing to do so. I’m using Atlas CLI.
What i did so far is: atlas deployments setup
After that i run the command: atlas deployments connect
In interactive shell i have options to select a deployment, i choose local one.
Next, i have 3 options: mongosh, compass, connectionString.
Mongosh and compass work, but in order to connect programmatically from my node.js app i have to choose the “connectionString”.
The string it generates is: "mongodb://localhost:27017/?directConnection=true"
.
Now, i use mongodb node.js driver to connect but it fails to connect.
Am i missing something here? What is the “connectionString” option for otherwise?
Best,
Marko