Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1059

Add aggregation pipeline class builder methods for new MongoDB 3.4 stages and $geoNear / $indexStats stages

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.0
    • None
    • API
    • None

    Description

      The pipeline class is currently missing methods associated with the new-in-MongoDB-3.4 pipeline stages:

      • $addFields
      • $bucket
      • $bucketAuto
      • $count
      • $collStats
      • $facet
      • $graphLookup
      • $replaceRoot
      • $sortByCount

      It is also missing a method associated with the $indexStats stage (new in MongoDB 3.2), and the $geoNear stage.

      In addition, pipeline::unwind() needs a new overload that allows users to specify values for the "includeArrayIndex" and "preserveNullAndEmptyArrays" options (new in MongoDB 3.2).

      We should either add new builder methods to the pipeline class for all of these new stages, or we should deprecate the pipeline class entirely and instead have users pass array builders directly to collection::aggregate().

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: