I just want to display all the indexes in the shell.
            Asked
            
        
        
            Active
            
        
            Viewed 2.6k times
        
    1 Answers
82
            If you want raw access to the indexes, you can query the db.system.indexes collection:
> db.system.indexes.find()
To find the indexes for a specific collection, you can do:
> db.collection.getIndexes()
See this question.
 
     
    