im trying to get some values from the database mysql with this sequelize code:
subSector .sync() .then(() => subSector.findAll({ Where: { Enterprise_Evaluation_ID: 2 } })) .then(result => { console.log(result) }) .catch(error => { console.log(error) }) } the problem is that sequelize get all values of the table and not only the data of the condition where.
any idea?
we recently change the project of server in AWS (change of elasticbeanstalk to other instance eb)