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-

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!