lua-resty-mongol
lua-resty-mongol copied to clipboard
How can I use aggregate?
How can I use aggregate? such as: db.mycol.aggregate([{$group : {_id : "$by_user", num_tutorial : {$sum : 1}}}])
How can I use aggregate? such as: db.mycol.aggregate([{$group : {_id : "$by_user", num_tutorial : {$sum : 1}}}]) I have the same problem! Have you solved it?