Query plan with stats mongodb

Show docs examined vs returned and index usage; COLLSCAN means missing index

mongosh --eval 'db.<name>.find({status:"active"}).explain("executionStats").executionStats'
more mongodb all 20 commands →