Update multiple rows in sequelize with different conditions : <p>I'm trying to perform an update command with sequelize on rows in a postgres database. I need to be able to update multiple rows that have different conditions with the same value.</p>

<p>For example, assume I have a user table that contains the following fields:</p>

<ul>
<li>ID</li>
<li>First Name</li>
<li>Last Name</li>
<li>Gender</li>
<li>Location</li>
<li>createdAt</li>
</ul>

<p>Assume, I have 4 records in this table, I want to update records with ID - 1 and 4 with a new location say Nigeria.</p>

<p>Something like this: <code>SET field1 = 'foo' WHERE id = 1, SET field1 = 'bar' WHERE id = 2</code></p>

<p>How can I achieve that with sequelize?</p>
