Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ deployment hosted on Atlas:

.. code-block:: kotlin

val uri = "mongodb+srv://<username>:<password>@<hostname/port>/?<options>"
val uri = "mongodb+srv://<db_username>:<db_password>@<hostname/port>/?<options>"
val mongoClient = MongoClient.create(uri)

Replica Set
Expand Down Expand Up @@ -161,7 +161,7 @@ selection function:

.. code-block:: kotlin

val client = MongoClient.create("mongodb://<username>:<password>@<hostname>:<port>",
val client = MongoClient.create("mongodb://<db_username>:<db_password>@<hostname>:<port>",
server_selector=<selector function>)

.. To learn more about customizing server selection, see
Expand Down
2 changes: 1 addition & 1 deletion source/includes/connect/compression-tabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@

.. code-block:: kotlin

val uri = ConnectionString("mongodb+srv://<user>:<password>@<cluster-url>/?compressors=snappy,zlib,zstd")
val uri = ConnectionString("mongodb+srv://<db_username>:<db_password>@<cluster-url>/?compressors=snappy,zlib,zstd")

val mongoClient = MongoClient.create(uri)
2 changes: 1 addition & 1 deletion source/includes/connect/disable-host-verification-tabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

.. code-block:: kotlin

val uri = "mongodb://<username>:<password>@<hostname>:<port>/?"tls=true&tlsAllowInvalidHostnames=true"
val uri = "mongodb://<db_username>:<db_password>@<hostname>:<port>/?"tls=true&tlsAllowInvalidHostnames=true"
val mongoClient = MongoClient.create(uri)
2 changes: 1 addition & 1 deletion source/includes/connect/tls-tabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

.. code-block:: kotlin

val uri = "mongodb+srv://<user>:<password>@<cluster-url>?tls=true"
val uri = "mongodb+srv://<db_username>:<db_password>@<cluster-url>?tls=true"
val mongoClient = MongoClient.create(uri)
2 changes: 1 addition & 1 deletion source/includes/connect/zlib-level-tabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

.. code-block:: kotlin

val uri = "mongodb://<username>:<password>@<hostname>:<port>/?" +
val uri = "mongodb://<db_username>:<db_password>@<hostname>:<port>/?" +
"compressors=zlib" +
"zlibCompressionLevel=<zlib compression level>"

Expand Down
Loading