list collections in current db mongodb code example Example: show collections in mongodb db.getCollectionNames()