-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.2
-
Component/s: Internal Code
-
None
-
ALL
-
MongoDB Update is working inconsistently when using the positional $ operator to update an array element. It seems to be always updating the first element and not the element matching the query condition.
Found that update is working as expected when the array element field name is changed from "s" to "a". Please see steps to reproduce for more details.
Found the issue on MongoDB server version: 3.6.2. Not sure if it is present in all versions.