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