join mongodb cluster code example Example: add members to replica set mongodb rs.add( { host: "mongodb3.example.net:27017", priority: 0, votes: 0 } )