mongoose updatemany documents 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) => {});