dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Group by Month? #837

Open DimitarDechew opened 5 years ago

DimitarDechew commented 5 years ago

How can I group my results by month? I want to get sum of orders in all months of the year. I tried using .groupBy("MONTH(createdAt)") but it returns "undefined"