Assume we have the following collection, which I have a few questions about:
{
"_id": ObjectId("5f560d4b5d4b4a0013e6fe34"),
"places": [
{
"_id": "5f55d5c643b7370013605513",
"stores": [
{
"_id": "5f55d5c643b7370013605514",
"open": false
},
{
"_id": "5f55d5c643b7370013605512",
"open": false
}
]
},
{
"_id": "5f3b8d7194beb72ec8975639",
"stores": [
{
"_id": "5f55eb98ed8c3a2af29fa395",
"open": false
},
{
"_id": "5f55eba2ed8c3a2af29fa39b",
"open": false
}
]
}
]
}
I want to find 1 store with _id at stores and update key open of this store to true.
placesa collection or is it just a property of a collection?placesis a Key in a CollectionupdateOnemethod witharrayFiltersoption to find and update a specificstores#_idand update itsopenvalue.Thank you!