我正在group by通过Sequelize寻找查询,但似乎找不到任何文档。
group by
SELECT column, count(column) FROM table GROUP BY column
问题:https : //github.com/sequelize/sequelize/issues/348
User.findAll({ group: ['field'] })
我使用sequelize@2.0.0-dev9