mongoDb replica set configuration with application

Hi Team,
I am planning to configure the “mongodb replica set” with our openhab web server for "High Availability of database.
mongoDB doc to configure-
http://mongodb.github.io/node-mongodb-native/3.1/tutorials/connect/

But here,the problem which I am facing is , we are giving the mongoDB instance ip in openhab-cloud/config-production.json file , but here what is the way to define the mongodb replica-set instances.

Any help would be much appreciated!

Thanks,