I have the following mongodb document structure:
{
"_id" : "c6b8S5Rx8xZiL42WS",
"rows" : [
[
{
"row" : 1,
"col" : 1,
"reserved" : false
},
{
"row" : 1,
"col" : 2,
"reserved" : false
},
],
[
{
"row" : 2,
"col" : 1,
"reserved" : true
},
{
"row" : 2,
"col" : 2,
"reserved" : false
},
],
]
}
- Is it possible to somehow update for example the inner object where row=1 and col=1 in this document?
- Or should I just change the whole document's structure/maybe create a new collection?