db.getCollectionNames() equivalent in pymongo
mongodb, pymongo
Solution
collection_names()
Will show you the collections of the current database.
From documentation:
`collection_names()`
Get a list of all the collection names in this database. [read more]
Problem
mongodb `db.getCollectionNames()`command will give you all collection names what are all there in the current db, in a list. I want the same output using pymongo. I googled some time and couldn't find anything like that. Is anything like that exists ?