public boolean exitsMongoDbDataBase ( String dataBaseName ) { List < String > dataBaseList = mongoClient . getDatabaseNames ( ) ; return dataBaseList . contains ( dataBaseName ) ; }
Checks if a database exists in MongoDB .