To see all the indexes attach with a Collection or within a database MongoDB has provided two functions. In this post we will explore these two methods.
getIndexes()
This method is use to see all the indexes define for a collection (table)
System.Indexes
This method is use to see the list of all indexes in the current databases in MongoDB.
What is MongoDB?
How to get Started with MongoDB
How to create or drop Database in MongoDB?
How to create Collection (Table) in MongoDB?
... More
How to get Started with MongoDB
How to create or drop Database in MongoDB?
How to create Collection (Table) in MongoDB?
... More