Write concern and read concern control the consistency and durability guarantees in MongoDB (in replica sets) — trading off between performance and safety/consistency. They let you tune how strongly writes are confirmed and how consistent reads are, based on the data's needs.
Write concern — durability of writes
db..(doc, { : { : } });
db..(doc, { : { : } });
db..(doc, { : { : , : } });
