How would you go about updating the 'status' attribute of the product "car" having a status of 0, to 1, in the purchases array of the following MongoDB Document.
MongoDB Document::
{
"local": {
"Name": "Rio",
"Income": 300000,
"purchases": [{
"prod": "car",
"status": 1
},
{
"prod": "bike",
"status": 0
},
{
"prod": "car",
"status": 0
}
]
}
}