title: update all the matching elements of array in mongodb
body: <p>my array is as following:</p>
  
  <pre><code>{
      "_id" : ObjectId("5704cf4da64ffd34d7285fef"),
      "names" : [ 
          {
              "name" : "harjeet"
          }, 
          {
              "name" : "harjeet123"
          }, 
          {
              "name" : "harjeet1234"
          }
      ]
  }
  </code></pre>
  
  <p>i need to update name as "harjeet12345", all of them.</p>
  
  <p>my research found about this: <a href="https://jira.mongodb.org/browse/SERVER-1243" rel="nofollow">https://jira.mongodb.org/browse/SERVER-1243</a></p>
  
  <p>Is there any way to perform this update</p>