-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
Why the positional $ operator cannot be used for queries which traverse more than one array?
A possible solution is to pass to the update method an array of quey to solve $ operator.
db.collection.update(
{ <array>: value ... }, { <update operator>:
{ "<array>.$....$" : value }},{ query_array:
{ query1,query2,...} } )
Each item in array query solve in order the $ operator
- duplicates
-
SERVER-831 Positional Operator Matching Nested Arrays
- Closed