Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4441

Embedded mongosh should ignore undefined results

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

      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@mongodb.com Anna Henningsen
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: