Looks like with mongodb-driver-core 4.2.3 the MongoClientOptions class has gone. But in mongo documentation its not mentioned as such.
Why should i use instead MongoClientOptions in this case?
Looks like with mongodb-driver-core 4.2.3 the MongoClientOptions class has gone. But in mongo documentation its not mentioned as such.
Why should i use instead MongoClientOptions in this case?
It’s not gone. It’s still available in the mongodb-driver-legacy artifact.
For applications that want to avoid mongodb-driver-legacy and instead rely solely on mongodb-driver-sync, the replacement for MongoClientOptions is called MongoClientSettings.