I am looking for a way to retrieve the executionStats for aggregations.
executionStats
When using find(), I can retrieve them easily by using explain. Example output:
For me it works like this, you have this fixed in from version 3.5.5
It shows the execution plan and other metrics.
db.videos.explain('executionStats').aggregate([])