Details
-
New Feature
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
Query
Description
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.
Attachments
Issue Links
- duplicates
-
SERVER-22384 Add $lookUpOne to retrieve single Object on result
-
- Open
-