Skip to content

Commit b0f269e

Browse files
committed
DOCSP-40099: Add note about client.connect() (#894)
(cherry picked from commit 6ab9caa)
1 parent 9d7a3d1 commit b0f269e

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
@@ -95,6 +95,13 @@ verify that the connection is successful:
9595
.. literalinclude:: /code-snippets/connection/stable-api-connect.js
9696
:language: javascript
9797

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

0 commit comments

Comments
 (0)