Skip to content

Commit

Permalink
DOCSP-40099: Add note about client.connect() (#894)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ab9caa)
  • Loading branch information
mcmorisi committed Jun 11, 2024
1 parent 0dd37de commit 3a35f4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/fundamentals/connection/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ verify that the connection is successful:
.. literalinclude:: /code-snippets/connection/stable-api-connect.js
:language: javascript

.. note::

The {+driver-short+} automatically calls the ``MongoClient.connect()``
method when using the client to perform CRUD operations on your MongoDB deployment.
Call the ``MongoClient.connect()`` method explicitly if you want to verify that the
connection is successful.

To learn more about the Stable
API feature, see the :ref:`{+stable-api+} page <nodejs-stable-api>`.

Expand Down

0 comments on commit 3a35f4d

Please sign in to comment.