To list all indexes in a MongoDB collection, you can use the following methods:
db.collectionName.getIndexes();
db.runCommand({ listIndexes: 'collectionName' });
If you are using MongoDB Compass (a graphical user interface for MongoDB), navigate to the collection, and under the 'Indexes' tab, you can view all existing indexes.