title: Sequelize.js. How to find object in JSON datatype?
body: <p>I am writing <code>query JSON</code> data in <code>sequelize.js</code> using <code>postgres</code> db.</p>
  
  <p><strong>Postgres table structure</strong></p>
  
  <pre><code>id: integer,
  name: string,
  data: json
  </code></pre>
  
  <p><strong>Here is my data structure</strong></p>
  
  <pre><code>{
      id: 3,
      name: "v4th79j"
      data: {
          phone: "123456789",
          email: "example@gmail.com",
          password: "$2a$10$qCttQ8leMPCzJfE",
          company_id: 2
      }
  }
  </code></pre>
  
  <p><strong>I am writing query like this</strong></p>
  
  <pre><code>var filter = {};
  // Filter by email for a user
  filter.where = { data: { email: "example@gmail.com"} } ;
  Entity.findOne(filter)
  .then(function (entity) {
  console.log(JSON.stringify(entity))
  });
  </code></pre>
  
  <p>but it is not working. <em>How to find object in JSON datatype?</em></p>