title: How to get simple array in sequelize findAll()?
body: <p>I'm trying to get all rows with specific ID in <code>async/await</code> style using <code>sequelize</code>. My code looks like:</p>
  
  <p><strong>UPDATED:</strong></p>
  
  <pre><code>router.get('/', errorHandler(async (req, res, next) =&gt; {
  
      let domainsDB = await Domain.findAll({
              where: { accID: accID },
              attributes: [`adID`, `domain`, `status`]
      })
  
  }
  </code></pre>
  
  <p>When I <code>console.log(domainsDB)</code> I see this:</p>
  
  <pre><code>[ 
       domains {
         dataValues: [Object],
         _previousDataValues: [Object],
         _changed: {},
         _modelOptions: [Object],
         _options: [Object],
         __eagerlyLoadedAssociations: [],
         isNewRecord: false },
       domains {
  ...
  ...
  ...
  ]
  </code></pre>
  
  <p>The <a href="http://docs.sequelizejs.com/manual/tutorial/models-usage.html#-findall-search-for-multiple-elements-in-the-database" rel="noreferrer">docs</a> says it has to be an array in return. But console log shows this is an object. The data in this object in <code>dataValues</code> is correct. There are my domains. But I expect to get an array to work with.</p>
  
  <p>How to get an array in return with <code>async/await?</code> Thank you for any help.</p>