.explain().find() cursor behaves differently than it does in legacy shell

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Explain, Shell API
    • None
    • None
    • Developer Tools

      db.coll.explain().find().next():

      • returns the explain results in the legacy shell
      • iterates the cursor normally in mongosh
        because the legacy shell API was not translated properly to mongosh.

      We'll need to decide whether to stick with mongosh's now-established behavior or adopt the legacy shell's one (where the legacy shell created a 'fake' single-document cursor).

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

              Created:
              Updated: