Damir Damir - 1 year ago 103
Python Question

How to find names of all collections using PyMongo?

How to find names of all collections using PyMongo and find all fields in chosen collection ?
I have name of database and name of chosen collection. (Scenario : user input name of database, need to find all collections and show in dropdown list, when user click on one item need to find all fields in that collection)

Answer Source