explain
Get query execution statistics for the winning plan chosen by the optimizer. Analyze performance of find, aggregate, or count operations.
Instructions
Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | The method and its arguments to run | |
| database | Yes | Database name | |
| verbosity | No | The verbosity of the explain plan, defaults to queryPlanner. If the user wants to know how fast is a query in execution time, use executionStats. It supports all verbosities as defined in the MongoDB Driver. | queryPlanner |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| verbosity | Yes | ||
| explainResult | Yes |