Skip to content

Commit 6862ce8

Browse files
committed
better intro
1 parent 1c10478 commit 6862ce8

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

source/fundamentals/connection/connection-options.txt

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ Connection Options
1212
:keywords: node.js, customize
1313

1414
This section explains the MongoDB connection and authentication options
15-
supported by the driver. You can pass the connection options as
16-
parameters of the connection URI to specify the behavior of the client.
15+
supported by the driver that you can set within a ``MongoClientOptions`` instance.
16+
17+
For more information on setting connection options directly in a connection
18+
string, see :manual:`Connection Strings </reference/connection-string/>` in the
19+
Server manual.
1720

1821
.. list-table::
1922
:header-rows: 1
@@ -224,12 +227,6 @@ parameters of the connection URI to specify the behavior of the client.
224227
- Specifies the timeout, in milliseconds, to block for server selection
225228
before raising an error.
226229

227-
* - **serverSelectionTryOnce**
228-
- boolean
229-
- ``true``
230-
- Specifies to scan the topology only once after a server selection
231-
failure instead of repeatedly until the server selection times out.
232-
233230
* - **socketTimeoutMS**
234231
- non-negative integer
235232
- ``0``
@@ -305,22 +302,12 @@ parameters of the connection URI to specify the behavior of the client.
305302
allowing invalid certificates or hostname mismatches. Set this option
306303
to ``true`` for testing purposes only.
307304

308-
* - **w**
309-
- non-negative integer or string
310-
- ``null``
311-
- Specifies the default write concern ``"w"`` field for the client.
312-
313305
* - **waitQueueTimeoutMS**
314306
- non-negative integer
315307
- ``0``
316308
- Specifies the amount of time, in milliseconds, spent attempting to check out a connection
317309
from a server's connection pool before timing out.
318310

319-
* - ** **
320-
- dd
321-
- dd
322-
-
323-
324311
* - **zlibCompressionLevel**
325312
- integer between ``-1`` and ``9`` (inclusive)
326313
- ``-1``
@@ -329,3 +316,9 @@ parameters of the connection URI to specify the behavior of the client.
329316
no compression, ``1`` signifies the fastest speed, and ``9`` signifies
330317
the best compression. See :ref:`node-network-compression` for more information.
331318

319+
Additional Information
320+
----------------------
321+
322+
For more complete information on connection options that you can set within the
323+
``MongoClientOptions`` instance, see `MongoClientOptions <{+api+}/interfaces/MongoClientOptions.html>`__
324+
in the API Documentation.

0 commit comments

Comments
 (0)