[SERVER-42307] $lookup overwrites the entire object and erases fields (other than what "as" holds) when used inside an array of nested objects Created: 19/Jul/19 Updated: 19/Jul/19 Resolved: 19/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mert Hasret | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | Bug | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Schema: , , , , } lookup stage: }, } expected result: } result: , As you can see above, fields inside the "a" gets overwritten by the $lookup operation. |
| Comments |
| Comment by Danny Hatcher (Inactive) [ 19/Jul/19 ] |
|
Closing as duplicate of SERVER-42306. |