Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2994

Note users must advance cursor returned by aggregate helper to execute pipeline

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.15.0
    • None
    • docs, libmongoc
    • None

    Description

      This is something I realized while implementing the db-level aggregate helper in CDRIVER-2899. The current documentation leads users to believe that the pipeline is executed by the helper itself, which is not correct since the returned command cursor is lazy. This is especially pertinent for piplines using an $out stage, as there is typically no reason to advance the cursor (no results are ever returned).

      I intend to update the doc blocks for both the db and collection helpers as part of CDRIVER-2899, but this issue can be used to revise mongoc_collection_aggregate.rst.

      Attachments

        Activity

          People

            isabel.atkinson@mongodb.com Isabel Atkinson
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: