title: How do I perform queries on multiple rows simultaneously using sequelize.js?
body: <p>I've read the documentation of <a href="http://sequelizejs.com" rel="nofollow">sequelize</a> quite thoroughly and I can't seem to find any way to perform operations on multiple rows simultaneously. Something like</p>
  
  <pre><code>UPDATE mytable SET expired=1;
  </code></pre>
  
  <p>The only way I can see of doing this through <a href="http://sequelizejs.com" rel="nofollow">sequelize</a> would be to run <code>mytable.all()</code> and loop through each resulting row, setting expired to 1 and saving it. This would take the same amount of queries as there are rows in the table (could be thousands) instead of the one simple query.</p>
  
  <p>Does <a href="http://sequelizejs.com" rel="nofollow">sequelize</a> perhaps have some undocumented method of doing this? Or perhaps just well hidden in the documentation? Is it possible to run custom SQL queries through some undocumented private field of sequelize?</p>
  
  <p>Any info on the subject appreciated</p>