coen-hyde / Shanty-Mongo

Shanty Mongo is a mongodb library for the Zend Framework. Its intention is to make working with mongodb documents as natural and as simple as possible. In particular allowing embedded documents to also have custom document classes.
Other
200 stars 52 forks source link

How to use GROUP BY? #117

Closed ZeusMode closed 11 years ago

ZeusMode commented 11 years ago

Hello guys, i'm trying to use Shanty in one of my applications and i can't find any example of how to use GROUP with Shanty DB.

In shell command db.users.group(.... works great to me, but i don't know how to "translate" to Shanty query.

Thanks in advanced.

ZeusMode commented 11 years ago

Solved using MapReduce. This pdf helps me a lot. http://rickosborne.org/download/SQL-to-MongoDB.pdf