To update multiple documents in a collection, set the multi option to true.
db.collection.update(
   query,
   update,
   {
     upsert: boolean,
     multi: boolean,
     writeConcern: document
   }
)
multi is optional. If set to true, updates multiple documents that meet the query crit...