Prev Next

Database / MongoDB Interview questions

What is the mongo shell command to show the database (db) that you are currently using?

Use the db command.

You may also use db.getName() command.

More Related questions...

Show more question and Answers...


Comments & Discussions