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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API, Write Operations
    • None

    Description

      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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            barrie Barrie Segal
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: