This version of the documentation is archived and no longer
supported. View the current documentation to learn how to
upgrade your version of MongoDB.
db.getMongo()Returns: The current database connection. db.getMongo()runs when the shell initiates. Use this command to test that themongoshell has a connection to the proper database instance.