-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Query
When performing a $lookup to pull in data from single document in another collection the result is persisted as an array (a single element array). A subsequent $unwind is often necessary to make working with this array easier.
It would be good if $lookup had a switch that allowed it to automatically do this unwind if a single result is detected.
- duplicates
-
SERVER-22384 Add $lookUpOne to retrieve single Object on result
- Open