Embedded mongosh should ignore undefined results

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.24.1
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • 2
    • Iteration Papaya
    • Not Needed
    • None

      In the standalone mongosh and mongo shell, an undefined result is ignored:

      > var foo = '123'

      Current behaviour in Compass 1.22.1 is to display "undefined":

      > var foo = '123'
      < undefined

      This outcome is confusing for operations that evaluate to undefined rather than providing a meaningful result (for example, variable declaration). It appears as though the operation may have failed (or be unsupported) when the result code is actually irrelevant.

            Assignee:
            Anna Henningsen
            Reporter:
            Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: