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