From 5a85ebb912019185527258af9b0ad617df9beaeb 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 243cf9995..17fb36766 100644 --- a/source/fundamentals/connection/connect.txt +++ b/source/fundamentals/connection/connect.txt @@ -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 `.