When you are using
rs.add({host:"XXXX:YYYY",priority:0,hidden:true})
you must also provide the _id:X however the helper can find the _id based on the previous ones.
When you are using
rs.add({host:"XXXX:YYYY",priority:0,hidden:true})
you must also provide the _id:X however the helper can find the _id based on the previous ones.