File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ that corresponds to your preferred class.
100
100
:dedent:
101
101
102
102
.. tab:: MongoClientSettings
103
- :tabid: connectionstring
103
+ :tabid: mongoclientsettings
104
104
105
105
.. literalinclude:: /includes/connect/connection-targets.kt
106
106
:language: kotlin
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ fun main() {
10
10
// start-connect
11
11
val connectionString = ConnectionString (" <connection string URI>" )
12
12
13
+ // Defines Stable API version
13
14
val serverApi = ServerApi .builder()
14
15
.version(ServerApiVersion .V1 )
15
16
.build()
16
17
18
+ // Uses MongoClientSettings to apply connection string and specify the Stable API version
17
19
val settings = MongoClientSettings .builder()
18
20
.applyConnectionString(connectionString)
19
21
.serverApi(serverApi)
You can’t perform that action at this time.
0 commit comments