I am trying to get all db's from a mongodb instance, but I am only getting db's that have a collection in them. db's that are empty (do not have any collections) are not included in the list.
I have tried using
show databases, listDatabases with no filter, (https://docs.mongodb.com/manual/reference/command/listDatabases/).
What is the correct command I should use? Also, if anyone knows the corresponding command in pymongo that would be great..