[DOCS-10791] Comment on: "manual/reference/operator/aggregation/lookup" Created: 14/Sep/17 Updated: 30/Oct/23 Resolved: 02/Jul/19 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nathan Leniz | Assignee: | Kay Kim (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | collector-298ba4e7, docs-triage | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: | |||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 4 years, 32 weeks, 1 day ago | ||||||||
| Epic Link: | DOCSP-1769 | ||||||||
| Description |
|
Based on server ticket $unwind may still be used for prettier formatting, but the same can be accomplished on the other side of the $lookup with $project and some other expressions. Using the same sample documents in the document example, see the following pipeline and output.
|
| Comments |
| Comment by Githook User [ 02/Jul/19 ] |
|
Author: {'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 02/Jul/19 ] |
|
Author: {'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 02/Jul/19 ] |
|
Author: {'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 02/Jul/19 ] |
|
Author: {'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}Message: |
| Comment by Asya Kamsky [ 28/Nov/17 ] |
|
I was about to mention the same thing for that page. You do NOT need an $unwind and that note/example should be adjusted. |