Multiple model updates in sails waterline
问题 I'm building a project on sails (0.10.0-rc5) for a few days and in a few cases i need to update multiple entries at once with the same data so I made something up ... Servers.find({owner_id: anonymous_user.id}).exec(function(error, servers) { catches.error(error); queries.save_each(servers, {owner_id: user.id}); }); The interesting part is queries.save_each() which I created ... /** * Save each ActiveRecord objects with the desired attributes * @param {object} objects ActiveRecord object (e.g