MongoDB Method: db.collection.getIndexes()
Get full information on all existing indexes of a collection. Hidden indexes are also included in the result of this method.
Get full information on all existing indexes of a collection. Hidden indexes are also included in the result of this method.
Create an index on a collection. We can set index based on fields, and also can set index with specific name.