In SQL Server, we have
sys.databases to know the list of databases under a server whereas MongoDB has below command to check for all the database lists
>show dbs
Output:
local 0.4566
Database1 0.6422
Note:
show dbs returns the database names which has at least one document/record into it