[CSHARP-2673] UpdateOneAsync with ArrayFilters not working Created: 01/Aug/19 Updated: 26/Aug/19 Resolved: 26/Aug/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | 2.9.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sandeep Thammadi | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 |
||
| Description |
|
Hi, I'm trying to update a nested array element in a single document using array filters. The call to UpdateOneAsync succeeds, but the returned matched count and modified count, both are 0. Here is how I'm calling the API:
I'm using MongoDB.Driver v 2.9.0-beta2 Please help! Cheers, |
| Comments |
| Comment by Robert Stam [ 05/Aug/19 ] |
|
Your C# code and shell example are using slightly different filters. Is it possible that the "$eq" that is present in the C# is throwing things off? If you used the exact same filters in your C# code as in the shell example does it work? |