how to check mongodb database name code example Example: how to get current database mongodb db.getName()