how to find daabase name in mongodb server code example Example: how to get current database mongodb db.getName()