How to connect to a MongoDB replica set?

How to connect to a MongoDB replica set?

In the Host parameter you need to specify all members of the MongoDB replica set using the following syntax host1[:port],host2[:port] . Then in the Advanced tab, you need to set to add a replicaSet parameter (e.g. replicaSet=my-replica-set)