Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1876

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell API
    • 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 Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: