updateMany replace mongoose 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) => {});