mongoose.connect (process.env.mongodb_uri, {usenewurlparser: true, usecreateindex: true,});

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