EK.
EK.

Reputation: 2996

Aggregation in Mongodb

I use SpringData+ mongoDB. Is it possible to do it in SporingData(I know, how to doi it in shell)

Thanks!

Upvotes: 0

Views: 511

Answers (2)

checklist
checklist

Reputation: 12930

Use

mongoOps.getCollection("yourCollection").aggregate( ... )

As aggregate framework is not yet supported.

Upvotes: 0

Louisa
Louisa

Reputation: 861

It looks like SpringData's alternative to the aggregation framework is the group operation. You can execute group operations as a method of the MongoTemplate class.

Upvotes: 1

Related Questions