dresende / node-orm2

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

Aggregate function #612

Open msequino opened 9 years ago

msequino commented 9 years ago

Hello, using this module, I have got into an error. The aggregate function has thrown me a "Missing aggregate functions" error because aggregates variable in file AggregateFuncionts.js file (line 95) was empty. Commenting the following three lines the module works fine.

The line that calling aggregate function is:

Managers.aggregate(["dip","des_dip","manager"]).groupBy('dip').get(...

Is there anything of wrong?

Thanks Manuel