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
for anyone still looking: Assuming you have MongoDatabase instance called "db"
try { db.createCollection("myCol"); } catch (MongoCommandException e) { System.err.println("Collection Exists"); }