mongoose write when connect code example
Example: Mongoose db connect
mongoose.connect('mongodb://username:password@host:port/database?options...', {useNewUrlParser: true});
mongoose.connect('mongodb://username:password@host:port/database?options...', {useNewUrlParser: true});