-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Query Optimization
In query, specifying a sort on 'time.0', where time is an array, will sort the documents according to the first element of that array. Aggregation does not allow users to access an element of an array via field path, i.e., $time.0 is undefined on an array. For feature parity, aggregation should support syntax that gives users the ability to access an element of an array with dot notation.
- is duplicated by
-
SERVER-29395 Cannot sort with aggregation by an array entry
- Closed
-
SERVER-58521 Dot notation updates with arrays can lead to nonsensical results
- Closed
-
SERVER-59309 update with aggregation pipeline and array position not working as expected
- Closed
- is related to
-
SERVER-58521 Dot notation updates with arrays can lead to nonsensical results
- Closed
- related to
-
SERVER-47935 findOneAndUpdate and update insert objects instead of arrays despite using array indexes in paths
- Closed