Add default "mongo" shell helper method to inform user of error

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Server Tooling & Methods
    • Dev Tools 2018-12-17, Dev Tools 2018-12-31, Dev Tools 2019-01-14, Dev Tools 2019-01-28, Dev Tools 2019-02-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, new users who may not be very familiar with a shell environment can easily find themselves in a mongo shell, such as verifying they've correctly added it to their path. Then, they may not exit the mongo shell but instead try to launch a new shell or connect to a database. This results in the following errors.

      MongoDB Enterprise > mongo
      2018-11-30T13:42:15.701-0500 E QUERY [js] ReferenceError: mongo is not defined :
      @(shell):1:1
      MongoDB Enterprise > mongo localhost
      2018-11-30T13:45:37.703-0500 E QUERY    [js] SyntaxError: missing ; before statement @(shell):1:6
      

      There are currently 22 threads in Education's new forums that show users encountering this situation, and countless more in our old forums. Adding a default to shellHelper would help ameliorate this and provide better feedback to our newer users.

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            Nathan Leniz
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: