rs.initiate
Also written: rs.initiate()
A mongosh command that sets up the replica set, run once on a fresh data folder. Without it, inserts fail with `not primary`.
Also written: rs.initiate()
A mongosh command that sets up the replica set, run once on a fresh data folder. Without it, inserts fail with `not primary`.