-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
Query Optimization
The update expression
{$set: {"a.$[5]": 0}}
should update the element at position 5 of array a to 0. This syntax should be used for updating arrays in oplog entries instead of
{$set: {"a.5": 0}}
which is ambiguous as to whether it means the array element at position 5, or a field of an object with name "5".
- depends on
-
SERVER-28763 Create UpdateArrayNode
- Closed
- related to
-
SERVER-4753 array indexes and object subfields should be referenced with different syntax
- Backlog