-
Type:
New Feature
-
Status: Closed
-
Priority:
Major - P3
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.1.5
-
Component/s: Aggregation Framework
-
Labels:None
-
Backwards Compatibility:Minor Change
-
Sprint:Quint Iteration 4, Quint Iteration 5
At present, there's no way to extract a specific element from an array-valued field. An operator should be added that could be used in a projection, e.g.:
db.runCommand({aggregate:"c", pipeline:[
{ $project : {
foo :
}}
]});
The effect of this would be put add the computed field (virtual field) foo to the projection, and give it the value of arrayField[5].
- is depended on by
-
JAVA-2001 Projection builder support for array indexing operator
-
- Closed
-
- is duplicated by
-
SERVER-6075 Accessing array elements by position fails in $project
-
- Closed
-
-
SERVER-16462 Can't access specific array elements in $group
-
- Closed
-
- is related to
-
SERVER-6074 Allow $slice operator in $project
-
- Closed
-
-
DRIVERS-234 Aggregation Builder Support for 3.2
-
- Closed
-
- related to
-
SERVER-5299 array element selection syntax returns wrong result
-
- Closed
-
-
CSHARP-1400 Support the new array indexing operator
-
- Closed
-