title: Updating value in array object
body: <p>I am trying to update the value of an object in an array of my mongodb schema using mongoose and nodejs.</p>
  
  <p>My model is :</p>
  
  <pre><code>{
  "_id": ObjectId("557eecd687cff9281040efe5"),
  "products": [
      {
          "productId": "6849500",
          "qty": 2,
          "_id": ObjectId("557eef13101aef4c101af513")
      }
  ]
  }
  </code></pre>
  
  <p>I would like to update the "products" array "qty" value filtering on "productId"</p>