OPTIONS

db.getMongo()

db.getMongo()
Returns:The current database connection.

db.getMongo() runs when the shell initiates. Use this command to test that the mongo shell has a connection to the proper database instance.

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.