Details
-
New Feature
-
Status: Backlog
-
Major - P3
-
Resolution: Unresolved
-
None
-
None
-
Query Execution
-
(copied to CRM)
Description
Right now $unwind can only unwind an array that is not nested within another array. For example 'a.b' can be unwound in this document:
{ a:{ b:[ 1, 2 ] } }
|
|
but not in this one:
|
|
{ a:[ { b:1 }, { b:2 } ] }
|
|
and not in this one:
|
|
{ a:[ { b:[ 1, 2 ] } ] }
|
Current behavior is to not unwind anything in these cases.
Attachments
Issue Links
- is related to
-
SERVER-23754 $unwind should error when it encounters arrays within arrays
-
- Backlog
-
-
SERVER-40134 Distinct command against a view can return incorrect results when the distinct path is multikey
-
- Closed
-
- related to
-
SERVER-23754 $unwind should error when it encounters arrays within arrays
-
- Backlog
-