mongoclient get collection names code example
Example: getcollectionnames
// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()
// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()