title: MongoDB update using Java 3 driver
body: <p>I'm switching to the MongoDB Java driver version 3. I cannot figure out how to perform an update of a Document. For example, I want to change the "age" of an user:</p>
  
  <pre><code>MongoDatabase db = mongoClient.getDatabase("exampledb");
  MongoCollection&lt;org.bson.Document&gt; coll = db.getCollection("collusers");
  
  Document doc1 = new Document("name", "frank").append("age", 55) .append("phone", "123-456-789");
  Document doc2 = new Document("name", "frank").append("age", 33) .append("phone", "123-456-789");
  coll.updateOne(doc1, doc2); 
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Invalid BSON field name name
  </code></pre>
  
  <p>Any idea how to fix it ?
  Thanks!</p>