-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query Execution
-
(copied to CRM)
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.
- 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