Skip to content

Commit

Permalink
DOCSP-40099: Add note about client.connect() (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmorisi authored Jun 11, 2024
1 parent b815a9c commit 6ab9caa
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 @@ -95,6 +95,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 6ab9caa

Please sign in to comment.