title: Update offspring in nested tree mongoDB, node.js
body: <p>Is there any way to update nested documents by id or some other field? </p>
  
  <p>I use "<a href="http://www.mongodb.org/display/DOCS/Trees+in+MongoDB#TreesinMongoDB-FullTreeinSingleDocument" rel="nofollow">Full Tree in Single Document</a>" and don't know beforehand how deep nesting can go. Need to Update, for example, answer with {id:'104'}. I can do that via 'dot notation', but since I don't know the level (depth) of nesting I can't predict how long my <code>'comment.answers.answers....answers.'</code> can go. </p>
  
  <p>Is there any way to directly find and update id:'104', or I still need to pass some kind of depth mark?</p>
  
  <pre><code>{
   title:'some title',
   comment:
       {
          id:'101'
          author:'Joe',
          text:'some comment',
          answers:
          [
              {
                id:'102'
                author:'Joe',
                text:'first answer to comment',
                answers:
                      [
                         {
                             id:'103'
                             author:'Done',
                             text:'first answer to first answer to comment',
                             answers:[]
                         },
                         {
                             id:'104'
                             author:'Bob',
                             text:'Second answer to first answer to comment',
                             answers:[]
                         }
  
                      ]
  
              },
  
              {
              },
  
              {
              },
          ]
       }
  }
  </code></pre>
  
  <p>I use <a href="http://mongodb.github.com/node-mongodb-native/index.html" rel="nofollow">The Node.JS MongoDB Driver</a></p>