explain("executionStats")
command in MongoDB provides detailed information about the execution plan and performance metrics of a query.find()
method, it returns a document containing statistics about how MongoDB executed the query.db.products.explain("executionStats").find({ price: { $gt: 10 } });