We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d465b commit ab41d1cCopy full SHA for ab41d1c
source/fundamentals/connection/csot.txt
@@ -50,7 +50,7 @@ The following code examples use the ``timeoutMS`` option to specify a timeout of
50
.. code-block:: javascript
51
:emphasize-lines: 2
52
53
- const uri = "mongodb://<hostname:<port>";
+ const uri = "mongodb://<hostname>:<port>";
54
const client = new MongoClient(uri, { timeoutMS: 30000 });
55
56
.. tab:: Connection String
@@ -59,7 +59,7 @@ The following code examples use the ``timeoutMS`` option to specify a timeout of
59
60
:emphasize-lines: 1
61
62
- const uri = "mongodb://<hostname:<port>?timeoutMS=30000";
+ const uri = "mongodb://<hostname>:<port>?timeoutMS=30000";
63
const client = new MongoClient(uri);
64
65
.. note::
0 commit comments