mongodb command to show objects in collection code example Example: show collections in mongodb db.getCollectionNames()