i want to update the value. The gap should be located with his id and the id from the pocket. I tried with the updateOne() function but i could not find the path vor the gap. Maybe you can help me.
There will be more objects in the pockets and gaps arrays.
{
"_id":"5a4f535f4dc4b200d43cf333",
"id":"A07","name":"name",
"capacity":"230",
"free":"230",
"open":false,
"location":
{
"longitude":51.02274,
"latitude":7.5612
},
"pockets":
[
{
"id":"A",
"description":"Parktasche",
"capacity":12,
"free":11,
"gaps":
[
{
"id":"7",
"value":true, <-- should be updating
"deployee":false,
"disabled":false,
"guest":false,
"pid":"A"
}
]
}
]
}