Add modifiedCount as a property of the com.mongodb.WriteResult class

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, Write Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the Java driver doesn't return nModified at all for the existing DBCollection.update method. The WriteResult class doesn't expose it at all, so it's not available.

      However, we should consider it. Since the new BulkWriteResult class has the method:

      • isModifiedCountAvailable
      • getModifiedCount

      we could add these same methods to WriteResult (or a new subclass of it, UpdateResult).

            Assignee:
            Unassigned
            Reporter:
            Barrie Segal (Inactive)
            None
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: