return the all the names of collection mongodb 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()