[SERVER-38399] Deep nested document not updated Created: 04/Dec/18 Updated: 01/Feb/19 Resolved: 01/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | samba | Assignee: | Danny Hatcher (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
Input:
Output:
|
| Comments |
| Comment by Danny Hatcher (Inactive) [ 01/Feb/19 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello, We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket. Thank you, Danny | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 05/Dec/18 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello, The query as written can be understood as: 1. Look inside the array of "a" Items 1-4 have to evaluate to "true" in order for step 5 to occur. We can see this happen correctly in the output. The array document that has "b" equal to 1 does not change value as it fails the first arrayFilter specified. Before:
After:
For more information, please read our documentation on specifying arrayFilters for array update operations. Does this address your issue? Danny |