Techiio-author
Started by Natasha JonesApr 30, 2022

Open
Not able to connect nodejs with mongdb compass database!

2 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 2 VIEWES SHARE

please help solve this problem.

1 Replies

Techiio-commentatorSoumya Parida replied 3 months ago0 likes0 dislikes

Your connection string should be like so:
const connection = "mongodb+srv://yourusername:youruserpassword@cluster0.huaic.mongodb.net/yourdatabasename?retryWrites=true&w=majority"

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance