title: MongoDB: Updating document in array with dictionary
body: <p>I found a <a href="https://stackoverflow.com/questions/6460394/mongodb-updating-a-document-in-an-array">StackOverflow Question</a> that comes very close to answering my question, but not quite there.</p>
  
  <p>Take this original question (modifying a document that is in an array) but assume that you do not have a specific change you wish to make. Instead, I have a dictionary of changes that I wish to make. Here is an example:</p>
  
  <p><strong>Original Document</strong></p>
  
  <pre><code>{
      _id: something,
      recipients: [{id:1, name:"Andrey", isread:false}, {id:2, name:"John", isread:false}]
  }
  </code></pre>
  
  <p><strong>Changes to be made</strong></p>
  
  <pre><code>{
      isread: true,
      fullname: 'jonathan'
  }
  </code></pre>
  
  <p>How can I apply this dictionary of changes to John (id:2)?
  Incase it is relevant, I am using the <a href="http://mongodb.github.com/node-mongodb-native/api-generated/collection.html#findandmodify" rel="nofollow noreferrer">MongoDB-Node.JS Driver</a>
  Thank you</p>