How to use aggregate queries in MongoDB version 2.0.6
曾经蜡笔没有小新2017-05-02 09:23:07
0
1
728
In MongoDB version 2.4, there are Aggregat() and Pineline() pipeline queries, but how to use this function in version 2.0.6, because 2.0.6 does not have the aggregate method. So how to implement aggregation group query? Need to use group() method.
Aggregation is a new feature added in 2.2. Consider using map/reduce in earlier versions.