ExplainableCursor is missing .finish() method

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Explain, Shell API
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Needed
    • Hide

      Need to document that a cursor created via `.explain().find().[...]` has a `.finish()` method that can be used to access the explain result – this essentially supersedes what was documented in https://jira.mongodb.org/browse/DOCSP-43841

      Show
      Need to document that a cursor created via `.explain().find(). [...] ` has a `.finish()` method that can be used to access the explain result – this essentially supersedes what was documented in https://jira.mongodb.org/browse/DOCSP-43841

      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.

              Assignee:
              Unassigned
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: