title: ArangoDB AQL: Update single object in embedded array
body: <p>I am trying to update the attribute on a json document in an embedded array using AQL.  How do i update the "addressline" for "home" type address using AQL below?</p>
  
  <h2>User:</h2>
  
  <pre><code>{
  name: "test",
  address: [
        {"addressline": "1234 superway", type:"home"}, 
        {"addressline": "5678 superway", type:"work"}
       ]
  }
  </code></pre>
  
  <h2>AQL Attempt so far</h2>
  
  <pre><code>for u in users
     for a in u.address
       FILTER a.type='home'
         UPDATE u WITH {&lt;What goes here to update addressline?&gt;} in users
  </code></pre>
  
  <p>Thank you for the help.</p>
  
  <p>Regards,
  Anjan</p>