require(sequelize op) code example
Example 1: sequelize .all()
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
Example 2: sequelize not equal
const { Op } = require("sequelize");
column: {[Op.ne]: value},
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
const { Op } = require("sequelize");
column: {[Op.ne]: value},