Reputation: 2996
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
Reputation: 12930
Use
mongoOps.getCollection("yourCollection").aggregate( ... )
As aggregate framework is not yet supported.
Upvotes: 0
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