Improve the sample code for Connecting with MongoDB Driver
When in Atlas you click the Connect button and get to the screen 'Connecting with MongoDB Driver', the Java sample isn't using the MongoClientSettings.builder() to set writeConcern and retryWrites. This is done in the connect string instead, even though the builder does provide those two settings.
I suggest only using the MongoClientSettings.builder() for better type safety.
1
vote
Jacob
shared this idea