apache/camel — pull request #26 by padewitte (2013-07-03 21:26:45+00:00)
Title: Add aggregat to mongo component

Hi,

I just add the ability to use aggregat in camel-mongo-db route.

Now you can declare a route to aggregate : from(...).to("mongodb:myDb?database=test&collection=test&operation=aggregat&dynamicity=true");

The body should contain a valid Mongo pipeline for example { $match : {"name" : "my product"}},{ $group: { _id: "$name" ,total: { $sum: "$price" } } }

P-Alban