Skip to content
Advertisement

Connect mangoDB Atlas with nodejs

I can’t connect to MongoDB database, yet I tried everything ! I have successfully replaced the password.

JavaScript

Here is the Database

MangoDB

Advertisement

Answer

You will need another function to complete the operation. the function is usually called run then you need to write all the operations of your server in the scope of this function. here is an example of a server of mine Also you need to declare the name of your database before text retrywrites=true

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement