MongoDB update documents

Changes a current archive or reports in an accumulation. The system can alter particular fields of a current archive or reports or supplant a current record totally, contingent upon the upgrade parameter.

							
db.COLLECTION_NAME.update(SELECTIOIN_CRITERIA, UPDATED_DATA)  
							

By default, the update() method updates a single document

The update() method has the following form:

db.collection.update(
   ,
   ,
   {
     upsert: ,
     multi: ,
     writeConcern: 
   }
)