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

Fix MongoCollection API mismatch between sync and async

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.0.0
    • None
    • API
    • None
    • Minor Change

    Description

      There are a couple of MongoCollection methods that have different signatures between sync and async. In the sync API the helper methods for aggregate and mapReduce that don't take a resultClass return elements of type <TDocument>. In the async API (reactive and callback), they return elements of type Document.

      Consider making a breaking change in 4.0 to resolve the discrepancy.

      Attachments

        Activity

          People

            john.stewart@mongodb.com John Stewart (Inactive)
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: