Updated article code (#12493)

This commit is contained in:
Avin Buricha
2022-07-15 00:08:20 +05:30
committed by GitHub
parent 3db189f71a
commit c252786fa9
3 changed files with 18 additions and 15 deletions
@@ -25,7 +25,7 @@ public class FindWithObjectId {
mongoClient = new MongoClient("localhost", 27017);
databaseName = "baeldung";
collectionName = "employee";
collectionName = "vehicle";
database = mongoClient.getDatabase(databaseName);
collection = database.getCollection(collectionName);