I have an issue in which I am not able to use the positional operator to update subdocuments because I am using MongoDB version 3.2 which doesn't support the positional operator $, and I am not able to upgrade MongoDB version to more than 3.2 due to the 32-bit MongoDB support
I want to change the value of the field order in the subdocument to the boolean value false
[
{
"_id": 1,
"products": {
"books": [
{
"id": 1,
"ordered": true
},
{
"id": 2,
"ordered": false
}
]
}
}
]
and if there is a mongoose way to do it , I would be thankfull