How can i make querys to arrays in a postgres db using sequelize
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