...
How to update a document in Mongo with Java?
Code Block | ||
---|---|---|
| ||
// ====== Updating a Document
db.getCollection("restaurants").updateOne(
new Document("_id",new ObjectId("57bea96d46e0fb000606c68c")),
new Document("$set", new Document("address.street", "East 31st Street"))); |
...