How to connect to my remote MongoDB server

I have deploy mongodb on qovery.

how to set up user authentication for Mongodb so that I can read and write to my MongoDB server from my laptop

When you add your MongoDB to your application, it generates credentials , you can find the credentials on the mongodb application with the credentials you can create the mongodb connection uri string like this: mongodb://[username]:[password]@[hostname]:[port]/[dbname]

1 Like