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

db.coll.explain().findOne() does not exist

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Explain, Shell API
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Developer Tools

      It seems that explain().findOne() is not a function in mongosh, while other variants are. It seems it's not intentional so we might want to add it.

      It affects the IntelliJ plugin, but we patched it, so we are not in a rush to fix it for the plugin.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: