get names of all the collection in mongo databse code example Example: show collections in mongodb db.getCollectionNames()