E.g.
db.foo.explain().find().finish().queryPlanner.winningPlan
worked in the legacy shell, but not in mongosh, and mongosh in general provides no way to access the result of a coll.explain().<...> expression programmatically.
E.g.
db.foo.explain().find().finish().queryPlanner.winningPlan
worked in the legacy shell, but not in mongosh, and mongosh in general provides no way to access the result of a coll.explain().<...> expression programmatically.