mongoose.connect (process.env.mongodb_uri, {useNeWurlparser: true, usecreateIndex: true,});

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