mongoose contect to replicaset 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});