Skip to content

Commit fef4a34

Browse files
(DOCSP-12268): Add Verify Connection section
1 parent 7f5793a commit fef4a34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/connect.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,16 @@ deployment from within the |mdb-shell|.
230230
To learn how to connect to a different deployment using these methods,
231231
see :ref:`mdb-shell-open-new-connections-in-shell`.
232232

233+
Verify Current Connection
234+
-------------------------
235+
236+
Use the :method:`db.getMongo()` method to verify your current database
237+
connection.
238+
239+
The method returns the
240+
:manual:`connection string URI </reference/connection-string/>` for
241+
your current connection.
242+
233243
Disconnect from a Deployment
234244
----------------------------
235245

0 commit comments

Comments
 (0)