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

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

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: