javier-nieto-nexplore commented on issue #2347:
URL: https://github.com/apache/drill/issues/2347#issuecomment-951920022
just in case this is from atlas connection wizard for driver 3.6 or later
(4.3 included)
```
ConnectionString connectionString = new
ConnectionString("mongodb+srv://<user>:<password>@<cluster_url>/<mydatabase>?retryWrites=true&w=majority");
MongoClientSettings settings = MongoClientSettings.builder()
.applyConnectionString(connectionString)
.build();
MongoClient mongoClient = MongoClients.create(settings);
MongoDatabase database = mongoClient.getDatabase("test");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]