I have the following problem:
I\'m using the Java driver for MongoDB 3.
In version 2 it was possible to do DB.collectionExists(name) to check whether a colle
MongoIterable collection = database.listCollectionNames(); for(String s : collection) { if(s.equals("collectionName")) { return true; } } return false; }