Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2254

Add `toCollection` to AggregateIterable and MapReduceIterable in the Sync driver

    XMLWordPrintableJSON

Details

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

    Description

      They are available in the async driver - so should be available in the synchronous driver.

      The workaround is to call AggregateIterable.first(), which incurs the extra expense of querying the out collection after the aggregation executes, which is not always desirable.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: