i have a problem that i cannot resolved by myself. i have a data in mongo db and i want to update specific value i show the code and images what i want is to update the specific object (the min propetry) how i can update it?
I notice you haven’t had a response to this topic yet - were you able to find a solution?
If not, you can try using below query to update the values of field min.
The $set operator replaces the value of a field with the specified value.
The filtered positional operator $[<identifier>] identifies the array elements that match the arrayFilters conditions for an update operation. In the example above, it was used in conjunction with the arrayFilters option to update all elements that match the arrayFilters conditions.
For more details, please see Update Nested Arrays in Conjunction with $
Note that the code example above seems to work correctly with the example document you posted, thus you may need to modify the example code to suit your use case better
Let me know if you have any more questions. Happy to help!