I\'m trying to connect to a MongoDB database with a username and password using Mongoose in Node.js. All the docs say that the connection string should look like
<
This one worked for me
This one is a MongoDB 2020 Update If You're using a separate env file then just add your
mongoose.connect('url', { useNewUrlParser: true, useUnifiedTopology: true });