Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6507

Add aggregate ability to camel-mongodb

    XMLWordPrintableJSON

Details

    • Patch Available
    • Novice

    Description

      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

      PS : I just create a pull request on github

      Attachments

        Activity

          People

            raulvk Raúl Kripalani
            padewitte Pierre-Alban DEWITTE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: