Function MongoCollection.aggregate
Calculates aggregate
values for the data in a collection.
Prototype
Bson aggregate(ARGS...)( ARGS pipeline );
Parameters
Name | Description |
---|---|
pipeline | a sequence of data aggregation processes |
Returns
an array of documents returned by the pipeline
Throws
Exception if a DB communication error occured
See Also
http://docs.mongodb.org/manual/reference/method/db.collection.aggregate
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.