In mongoDB an update operation can be used in 4 ways 1. wholesale replacement of a document. 2. update individual field using $set operator 3. upsertĀ  – do update or insert 4. multiupdate of a document We have already read about first 3 let us look at multiupdate of a document. if we run following