Skip to content

Glossary: MongoDB

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`.

Where the book teaches it

Related terms

Replica setPrimary