title: Update query for MongoDB in Node.js
body: <p>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.</p>
  
  <p>MongoDB Document::</p>
  
  <pre><code>{
      "local": {
          "Name": "Rio",
          "Income": 300000,
          "purchases": [{
                  "prod": "car",
                  "status": 1
              },
              {
                  "prod": "bike",
                  "status": 0
              },
              {
                  "prod": "car",
                  "status": 0
              }
          ]
      }
  }
  </code></pre>