How do you know the all indexes available for a collection?
Answer Posted / Amit Bhatnagar
To see all indexes for a collection in MongoDB, use the getIndexes() method. Example: db.collection.getIndexes()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers