Exploring MongoDB Aggregation Stages: Code Examples and Applications - Part 2
If you missed Part 1, get a quick look here.
$indexStats:
This example returns statistics on the usage of each index in the collection, including the name of the index, the number of accesses, and the size of the index.
db.collection.aggregate([
{...
akhilkumarpenugonda.hashnode.dev2 min read