To get the names of the indexes, use the db.collection.getIndexes() method.
Share this page with your friends!