Use findAll() with include() and sequelize.fn() for the COUNT : Location.findAll({ attributes: { include: [[Sequelize.fn("COUNT", ...
確定! 回上一頁