-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
$unwind operates on a single array field. sometimes tag-like information can be stored in multiple document fields. it may be useful to allow $unwind to operate on multiple array fields whose contents have been combined by some set/array operation. this could help users group by values that are contained across multiple fields.
i.e.
{x: [s1, s2], y: [s2, s3]}$unwind(x).$unwind(y) would create four documents.
would something like $unwind($union(x,y)) and group on $union(x,y) be possible/desirable?
- duplicates
-
SERVER-14872 Aggregation pipeline project expression operator to concatenate multiple arrays into one
- Closed
- related to
-
SERVER-8582 Extend document expression language in aggregation to support advanced document filtering.
- Closed