How can i make querys to arrays in a postgres db using sequelize
20:10 13 Dec 2022

i have model like this:

sequelize.define("user", {
    name: {
      type:Sequelize.TEXT,
    },
    favoriteColor: {
      type: Sequelize.TEXT,
      defaultValue: 'green'
    },
    age: {
      type: Sequelize.INTEGER,
    },
    cash: {
      type: Sequelize.INTEGER,
    },
    tag: {
      type: DataTypes.ARRAY(DataTypes.STRING)
    }

which i have insisted into successfully but i'm having issue on query to findAll where tag contains ... for example findAll where tag contains black

querys to arrays in a postgres db using sequelize

node.js postgresql sequelize.js