[DOCS-12756] Update documentation regarding using $lookup on array as localField Created: 27/May/19  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: Feedback Priority: Minor - P4
Reporter: Frank Wein Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates DOCS-8930 lookup between local (multiple)array... Closed
Related
is related to SERVER-22881 lookup between local (multiple)array... Closed
Participants:
Days since reply: 4 years, 37 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Description

I've noticed that the documentation at https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/#use-lookup-with-an-array says on using $lookup with an array as local field:

"If your localField is an array and you’d like to match the elements inside it against a foreignField which is a single element, you’ll need to $unwind the array as one stage of the aggregation pipeline."

This is no longer true since SERVER-22821 was fixed a while ago, isn't it? AFAIK you don't need to use $unwind anymore to join an array as local field against a single foreign value.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Frank Wein [ 27/May/19 ]

Make that SERVER-22881 in the description, the other link was a typo.

Generated at Thu Feb 08 08:06:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.