Details
-
New Feature
-
Resolution: Won't Fix
-
Blocker - P1
-
None
-
2.11.1
-
None
Description
We configured our mongobd to forbid the "listdatabases" (i.e, mongClient.getDatabaseNames()) feature for privacy reasons
I would like to check whether a database exists in MongoDB without using mongClient.getDatabaseNames().
If I use, mongoClient.getDB("mydb"), mongodb creates a new db instance which can't help to check whether dbname exist.
Can we have an api to check existance of database (like : mongoClient.isDBExists("db_name") )?