Example 1: sequelize count in include Location.findAll({ attributes: { include: [[Sequelize.fn("COUNT", Sequelize.col("sensors.id")), "sensorCount"]] } ...
確定! 回上一頁