Using replicaset client if replicaset provided