[JAVA-1143] Add modifiedCount as a property of the com.mongodb.WriteResult class Created: 07/Mar/14 Updated: 23/Jun/17 Resolved: 23/Jun/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Write Operations |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Barrie Segal | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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:
we could add these same methods to WriteResult (or a new subclass of it, UpdateResult). |
| Comments |
| Comment by Gui Forget [ 03/Sep/15 ] |
|
Ah I hadn't noticed that the new MongoCollection uses different classes for their return value. In that case, I'll be fine as I plan to switch to the new classes soon. |
| Comment by Jeffrey Yemin [ 03/Sep/15 ] |
|
gforget, this is the only ticket I know of. It's not going to make it into 3.1, and in general, we're less likely to add new features to DBCollection now that MongoCollection is available. |
| Comment by Gui Forget [ 02/Sep/15 ] |
|
@Jeff is there a ticket to upgrade the WriteResult object to expose the new fields? I couldn't find it and I see that it isn't planned for 3.1 yet |
| Comment by Jeffrey Yemin [ 08/Mar/14 ] |
|
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:
we could add these same methods to WriteResult (or a new subclass of it, UpdateResult). |