How does group by works in sequelize?

user964287 picture user964287 · Mar 25, 2014 · Viewed 70.2k times · Source

I am looking for group by queries through Sequelize and cannot seem to find any documentation.

    SELECT column, count(column)  
    FROM table 
    GROUP BY column

Answer

Sergey Karasev picture Sergey Karasev · Apr 11, 2014

issue: https://github.com/sequelize/sequelize/issues/348

User.findAll({
 group: ['field']
})

i use [email protected]