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

Always include cursor document in aggregate command for MongoDB versions >= 3.6

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Query Operations
    • Labels:
      None

      Inline results for the aggregate command was deprecated in MongoDB 3.4 and will be removed in MongoDB 3.6. The driver should ensure that, even when the application explicitly requests that a cursor not be used, a cursor is always requested when connected to a MongoDB server with version >= 3.6.

      Additionally, the default to an inline result in DBCollection aggregate methods should be changed to a cursor result.

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

              Created:
              Updated:
              Resolved: