Sequelize select * where attribute is NOT x
Updated method, for modern Sequelize:
model.findAll({
where: {
someAttribute: {
[sequelize.Op.not]: 'some value'
}
}
});
Try this
model.findAll({where: {attribute: { $not: 'x'}}})
Sequelize actually provides many operators for you to get your filter data.
You can refer to the link here