search

Home  >  Q&A  >  body text

How to use aggregate queries in MongoDB version 2.0.6

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.

曾经蜡笔没有小新曾经蜡笔没有小新2795 days ago739

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:25:07

    Aggregation is a new feature added in 2.2. Consider using map/reduce in earlier versions.

    reply
    0
  • Cancelreply