@@ -12,8 +12,11 @@ Connection Options
12
12
:keywords: node.js, customize
13
13
14
14
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.
17
20
18
21
.. list-table::
19
22
:header-rows: 1
@@ -224,12 +227,6 @@ parameters of the connection URI to specify the behavior of the client.
224
227
- Specifies the timeout, in milliseconds, to block for server selection
225
228
before raising an error.
226
229
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
-
233
230
* - **socketTimeoutMS**
234
231
- non-negative integer
235
232
- ``0``
@@ -305,22 +302,12 @@ parameters of the connection URI to specify the behavior of the client.
305
302
allowing invalid certificates or hostname mismatches. Set this option
306
303
to ``true`` for testing purposes only.
307
304
308
- * - **w**
309
- - non-negative integer or string
310
- - ``null``
311
- - Specifies the default write concern ``"w"`` field for the client.
312
-
313
305
* - **waitQueueTimeoutMS**
314
306
- non-negative integer
315
307
- ``0``
316
308
- Specifies the amount of time, in milliseconds, spent attempting to check out a connection
317
309
from a server's connection pool before timing out.
318
310
319
- * - ** **
320
- - dd
321
- - dd
322
- -
323
-
324
311
* - **zlibCompressionLevel**
325
312
- integer between ``-1`` and ``9`` (inclusive)
326
313
- ``-1``
@@ -329,3 +316,9 @@ parameters of the connection URI to specify the behavior of the client.
329
316
no compression, ``1`` signifies the fastest speed, and ``9`` signifies
330
317
the best compression. See :ref:`node-network-compression` for more information.
331
318
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