- Reference >
mongo
Shell Methods >- Database Methods >
- db.getMongo()
db.getMongo()¶
-
db.
getMongo
()¶ Returns: The current database connection. db.getMongo()
runs when the shell initiates. Use this command to test that themongo
shell has a connection to the proper database instance.