From 622c72c83228157c7d25a3f726aa630817804deb Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Tue, 11 Jun 2024 13:18:20 -0400 Subject: [PATCH] DOCSP-40099: Add note about client.connect() (#894) (cherry picked from commit 6ab9caa93e742b1c4c84c039cd7560c7ba2c29c2) --- source/fundamentals/connection/connect.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/fundamentals/connection/connect.txt b/source/fundamentals/connection/connect.txt index 72e75897..1ad8ea55 100644 --- a/source/fundamentals/connection/connect.txt +++ b/source/fundamentals/connection/connect.txt @@ -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 `.