We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2932c08 commit 1420a5dCopy full SHA for 1420a5d
source/includes/connect/connection-pools.kt
@@ -11,7 +11,7 @@ fun main() {
11
// start-client-settings
12
val mongoClient = MongoClient.create(
13
MongoClientSettings.builder()
14
- .applyConnectionString(ConnectionString("<connection string>"))
+ .applyConnectionString(ConnectionString("mongodb://<host>:<port>/"))
15
.applyToConnectionPoolSettings { builder ->
16
builder.maxSize(50)
17
}
0 commit comments