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:
executionStats was not supported for mongo aggregation queries till mongodb v3.4. The issue has been fixed in v3.6. i.e. db.videos.explain('executionStats').aggregate([])
db.videos.explain('executionStats').aggregate([])