Skip to content

Commit 3a35f4d

Browse files
committed
DOCSP-40099: Add note about client.connect() (#894)
(cherry picked from commit 6ab9caa)
1 parent 0dd37de commit 3a35f4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/fundamentals/connection/connect.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ verify that the connection is successful:
9696
.. literalinclude:: /code-snippets/connection/stable-api-connect.js
9797
:language: javascript
9898

99+
.. note::
100+
101+
The {+driver-short+} automatically calls the ``MongoClient.connect()``
102+
method when using the client to perform CRUD operations on your MongoDB deployment.
103+
Call the ``MongoClient.connect()`` method explicitly if you want to verify that the
104+
connection is successful.
105+
99106
To learn more about the Stable
100107
API feature, see the :ref:`{+stable-api+} page <nodejs-stable-api>`.
101108

0 commit comments

Comments
 (0)