I have a document structured like this:
{
"shedule": [
{
"SUN": {
"status": false,
"task": []
}
},
{
"MON": {
"status": false,
"task": []
}
},
]
}
How to update status to false and push new element to task array in sun object.
Here is the expected output.
{
"shedule": [
{
"SUN": {
"status": true,
"task": [1,2]
}
},
{
"MON": {
"status": false,
"task": []
}
},
]
}