title: Update nested array objects based on a property in MongoDB
body: <p>I have a MongoDB collection which has documents which look like this:</p>
  
  <pre><code>{
      createdTimestamp: 111111111111,
      items: [{
          itemName: 'Name 1',
          quantity: 10
      }, {
          itemName: 'Name 2'
          quantity: 20
      }]
  }
  </code></pre>
  
  <p>Now, I want to update all documents so that <code>itemName: 'Name 1'</code> would be updated to <code>itemName: 'New Name'</code>.
  After an update, the above document should look like as below:</p>
  
  <pre><code>{
      createdTimestamp: 111111111111,
      items: [{
          itemName: 'New Name',
          quantity: 10
      }, {
          itemName: 'Name 2'
          quantity: 20
      }]
  }
  </code></pre>
  
  <p>Is there any way to do this, without iterating over all documents myself?</p>