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

Fix MongoCollection API mismatch between sync and async

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None
    • Minor Change

      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.

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

              Created:
              Updated:
              Resolved: