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

Fix MongoCollection API mismatch between sync and async

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: API
    • Labels:
      None

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: