title: sequelize: find in json array
body: <p>In sequelize i have a model:</p>
  
  <pre><code>{
     modelId: {
        type:  DataTypes.UUID ,
        allowNull: false,
        primaryKey: true,
        defaultValue: DataTypes.UUIDV4 
      }
     name: DataTypes.STRING(1024),
     type: DataTypes.STRING,
     obj: DataTypes.JSON
  }
  </code></pre>
  
  <p>and in DB, my obj is an array like this:</p>
  
  <pre><code>[{
     id: '123456',
     text: 'test',
     name 'xpto'
  },{
     id: '32554',
     text: 'test2',
     name 'xpte'
  },{
     id: '36201',
     text: 'test3',
     name 'xpta'
  }]
  </code></pre>
  
  <p>i tried these:</p>
  
  <pre><code>btp.findAll({
          where: {
            obj:{
               [Op.contains]:[{id: req.body.id}]
            }
          },
          attributes: ['modelId','name','type','obj']
        })
  </code></pre>
  
  <p>but does not work, return this error:</p>
  
  <pre><code>{"name": "SequelizeDatabaseError",
  "parent": {
      "name": "error",
      "length": 128,
      "severity": "ERROR",
      "code": "42704",
      "file": "parse_coerce.c",
      "line": "1832",
      "routine": "enforce_generic_type_consistency",
       "sql":"....."}
  </code></pre>
  
  <p>so, i need to find in database all entries have in obj, id: '123456'</p>
  
  <p>my question is the same than this:
  <a href="https://github.com/sequelize/sequelize/issues/7349" rel="noreferrer">https://github.com/sequelize/sequelize/issues/7349</a></p>
  
  <p>but thats does not working for me, i need to return all entries that contains...
  i'm using "sequelize": "4.28.6", and "pg-hstore": "^2.3.2",</p>
  
  <p>can any one help?</p>