I've a problem with my sequelize raw query :
const results = await sequelize.query( "SELECT * FROM `cakes`", { type: QueryTypes.SELECT });
console.log('results : ', results);
res.send({ results });
TypeError: Cannot read properties of undefined (reading 'query')
But it doesn't work, I've an error 500. I'don't understand what is wrong, I'd a look on sequelize doc V6 here but every thing looks good.
Has Somebody an idea to solve my problem ?
Thanks