Mongoose.connect (process.env.mongoDB_uri, {useWurlParser: true, useCreateIndex: true,});

mongoose.connect('mongodb://username:password@host:port/database?options...', {useNewUrlParser: true});
Unusual Unicorn