there is a updatemany in mongoose for nodejs code example
Example: mongoose updatemany example
User.update({"created": false}, {"$set":{"created": true}}, {"multi": true}, (err, writeResult) => {});
User.update({"created": false}, {"$set":{"created": true}}, {"multi": true}, (err, writeResult) => {});