How to select case query in sequelize?
<p>I have a sql query:</p>

<pre><code>SELECT field1, field2,
  CASE
    WHEN field1=1 THEN 'a'
    ELSE 'b'
  END 
  AS field3
FROM test
</code></pre>

<p>and I want to implement it with <code>sequelizejs</code> , </p>

<pre><code>const params = {
  attributes: //DO SELECT CASE,
};

yield Model.findAll(params);
</code></pre>

<p>Can anyone help me? Thank you.</p>