bulkUpdate in sequelize orm
问题 How can we implement bulkUpdate like bulkCreate in sequelize orm, I searched the whole documentation of sequelize but didn't find anything related to bulkUpdate, so I tried to loop update in for loop, it works but is there any other way to update in bulk 回答1: Use the bulkCreate to bulkUpdate method. bulkCreate([...], { updateOnDuplicate: ["name"] }) updateOnDuplicate is an array of fields that will be updated when the primary key (or may be unique key) match the row. Make sure you have at