title: Update all objects in array and inner array that match
body: <p>I have this document structure</p>
  
  <pre><code>{
      "_id": &lt;OBJECT_ID&gt;,
      "orders": [
           {
                "userId": 1,
                "handleName": "John Doe",
                "orderAmount": 3,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "John Doe"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 2,
                "handleName": "Maria Gigante",
                "orderAmount": 2,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "John Doe"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 1,
                "handleName": "John Doe",
                "orderAmount": 4,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "John Doe"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 3,
                "handleName": "John Doe",
                "orderAmount": 4,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "John Doe"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           }
      ]
  }
  </code></pre>
  
  <p>I would like to update all the objects that has the <code>userId</code> of <code>1</code> and <code>handleName</code> of <code>John Doe</code>.
  Note that objects can have the same handle names but different user id. That is why I need to match it with the <code>userId</code> first.</p>
  
  <p>For example I want to change the handle name to <code>Donald Stark</code></p>
  
  <p>I would like to have this result:</p>
  
  <pre><code>{
      "_id": &lt;OBJECT_ID&gt;,
      "orders": [
           {
                "userId": 1,
                "handleName": "Donald Stark",
                "orderAmount": 3,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "Donald Stark"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 2,
                "handleName": "Maria Gigante",
                "orderAmount": 2,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "Donald Stark"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 1,
                "handleName": "Donald Stark",
                "orderAmount": 4,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "Donald Stark"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           },
           {
                "userId": 3,
                "handleName": "John Doe",
                "orderAmount": 4,
                "others": [
                     {
                          "userId": 1,
                          "handleName": "Donald Stark"
                     },
                     {
                          "userId": 2,
                          "handleName": "Maria Gigante"
                     }
                ]
           }
      ]
  }
  </code></pre>
  
  <p>How is this achieved?</p>
  
  <p>Update:
  I forgot that I also have another inner array that I also want to be updated.</p>