Skip to content

Glossary: MongoDB

explain()

Also written: explain("executionStats"), executionStats

A cursor method that reports how the server ran a query instead of returning documents. You compare `nReturned` with `totalDocsExamined` and check the plan's stage.

Where the book teaches it

Related terms

IXSCANFETCH