Updated article code (#12493)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user