title: How to show the execution plan of a statement with Sequelize.js
body: <p>I'm building my app with express and using postgresql as database, sequelize.js as ORM.</p>
  
  <p>I was wondering how I can use <code>EXPLAIN</code> in sequelize, to get the execution plan. On Mongodb for example it is done with <code>.explain()</code> (<a href="https://www.postgresql.org/docs/9.1/static/sql-explain.html" rel="nofollow noreferrer">postgresql website</a> , <a href="https://docs.mongodb.com/manual/reference/explain-results/" rel="nofollow noreferrer">mongodb example</a>).</p>
  
  <p>I'm looking for the equivalent in sequelize but can't find it. My query looks like this:</p>
  
  <pre><code>User.findOne({
    where: { id: req.params.id },
    include: {
      model: Post
    }
  })
  </code></pre>
  
  <p>Thanks!</p>