menu
The explain("executionStats") command in MongoDB provides detailed information about the execution plan and performance metrics of a query.
When used with the find() method, it returns a document containing statistics about how MongoDB executed the query.

Example:
db.products.explain("executionStats").find({ price: { $gt: 10 } });