I am trying to upgrade an outdated application from Java driver 2.10.1 to 3.0.0 Thus, the insert method changes to insertOne. but DBCollection.insert() returned a result where I can check getError() . But MongoCollection.insertOne() does not return a value.
How to check operation error?
source share