Skip to content

Commit c11d217

Browse files
committed
post review
1 parent 8d26e2f commit c11d217

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

source/connection-troubleshooting.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ are in the correct format.
103103

104104

105105
If your MongoDB deployment is on MongoDB Atlas, you can check your connection
106-
string by using the :ref:`Connect to MongoDB Atlas <connect-atlas-kotlin-driver>`
107-
code example. Make sure to replace the connection string in the example.
106+
string by using the :ref:`Atlas Connection Example <connect-atlas-kotlin-driver>`.
107+
Make sure to replace the connection string in the example with yours.
108108

109109
When connecting to a replica set, you should include all of the hosts
110110
in the replica set in your connection string. Separate each of the hosts
@@ -127,14 +127,14 @@ database:
127127
:copyable: false
128128

129129
val mongoClient =
130-
MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
130+
MongoClient.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users")
131131

132132
.. _kotlin-error-sending-message:
133133

134134
Error Sending Message
135135
~~~~~~~~~~~~~~~~~~~~~
136136

137-
When you end a request through the driver and it is unable to send the command,
137+
When you send a request through the driver and it is unable to send the command,
138138
it often displays the following general error message:
139139

140140
.. code-block:: none

source/faq.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ FAQ
1010
:depth: 2
1111
:class: singlecol
1212

13+
What if I can't connect to a MongoDB instance?
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
16+
If you have trouble connecting to a MongoDB deployment, see
17+
the :ref:`Connection Troubleshooting Guide <kotlin-connection-troubleshooting>`
18+
for possible solutions.
19+
1320
How Is the Kotlin Driver Different from Kmongo?
1421
-----------------------------------------------
1522

@@ -43,7 +50,8 @@ key differences:
4350
or `GSON <https://github.com/google/gson>`__.
4451
- The official driver does not support MongoDB shell commands.
4552
- The official driver supports type-safe queries with the Builders API,
46-
whereas KMongo uses infix functions and property references for type-safe queries.
53+
whereas KMongo uses infix functions and property references for
54+
type-safe queries.
4755

4856
.. _kotlin-faq-connection-pool:
4957

0 commit comments

Comments
 (0)