title: SequelizeJS: Best way to get min ID and max ID in a table
body: <p>What is the Best way to get min ID and max ID in a table in SequelizeJS?</p>
  
  <p>Now my code:</p>
  
  <pre><code>db.Message.max('id')
  .then(max =&gt; {
    db.Message.min('id')
    .then(min =&gt; {
      resolve({ 'minId': max, 'maxID': min })
     })
  })
  </code></pre>
  
  <p>Is this the best way? Please give your opinions</p>