[CSHARP-3724] BulkWriteResult doesn't have UpsertedCount Created: 02/Jul/21 Updated: 27/Oct/23 Resolved: 12/Jul/21 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Max Drachsh | Assignee: | Mikalai Mazurenka (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The BulkWriteResult contains properties like ModifiedCount, InsertedCount, and so on. But it doesn't have UpsertedCount. F.e I have list of updating models:
And then call:
From the bulkResult I cannot understand how much was upserted, moreover, InsertedCount is 0 also.
|
| Comments |
| Comment by Mikalai Mazurenka (Inactive) [ 12/Jul/21 ] | ||
|
You can get the UpsertedCount by accessing the Upserts property, e.g.
Adding UpsertedCount property into BulkWriteResult would be redundant. | ||
| Comment by Esha Bhargava [ 02/Jul/21 ] | ||
|
sharok89@gmail.com Thank you for reporting the issue! We'll look into it and get back to you soon. |