Hi, I connected to a private MongoDB service via SSH from my local laptop. How can I now connect to the database so that I can work with it locally in developer mode and also make it available for a Node.js project? Private serive mongodb can’t work like a cloud atlas, i need common database for my project?
Once the command was running, 127.0.0.1:27017 on your local machine would tunnel to the Private Service making calls to localhost:27017 on the instance.
However, it is usually a better practice to have a datastore instance per environment, so that local/developmental changes don’t affect deployed/production instances, but how you use your service would be up to you.