getcollectionnames

JavaScript
// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()

Source

Also in JavaScript: