title: Sequelize Transaction Bulk Update followed by Bulk Create
body: <p>I am working with Sequelize transaction and would like to know how to do a bulk update before sequentially doing a bulk create.</p>
  
  <p>My current code is something like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>return sequelize.transaction(function(t){
    return sequelize.Promise.each(arrToUpdate, function(itemToUpdate){
      model.update(itemToUpdate, { transaction: t })
    }); 
    //How to do a sequential bulk create after the bulk update is successful in sequelize
    //transaction?
    //Bulk Create code would be return model.bulkCreate(itemsArray, { transaction: t })
  });</code></pre>
  </div>
  </div>
  </p>