title: mongoose. updating embedded document in array
body: <p>In the <a href="http://mongoosejs.com/docs/embedded-documents.html" rel="noreferrer">a official mongoose site</a> I've found how can I remove embedded document by _id in array:</p>
  
  <pre><code>post.comments.id(my_id).remove();
  post.save(function (err) {
     // embedded comment with id `my_id` removed!
  });
  </code></pre>
  
  <p>I'm interested how can I update instead removing this one?</p>