Run
import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") #use database "organisation" mydb = myclient['organisation'] print("List of collections\n--------------------") #list the collections for coll in mydb.list_collection_names(): print(coll)
Output