title: MongoDB Java - Pushing to a nested Array?
body: <p>How do I push to a nested array in the following structure?</p>
  
  <pre><code>{
      level1 : {
         - arr1: [
                    "val1"
                 ]
      }
  }
  </code></pre>
  
  <p>I've tried using</p>
  
  <pre><code> coll.update(entry, new BasicDBObject("$push", new BasicDBObject("level1", new BasicDBObject("arr1", "val2"))));
  </code></pre>
  
  <p>where <code>coll</code> is the collection object and <code>entry</code> is the entry above.</p>
  
  <p>but the value is never pushed and no error is shown. What am I doing wrong?</p>