Warn users when they run "use db" without parentheses

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Minor - P4
    • 0.11.1
    • Affects Version/s: None
    • Component/s: Embedded Shell, Playgrounds
    • None
    • 3
    • Iteration Xantic Sargo
    • Not Needed

      When a playground starts with `use ...`, the mongosh shell evaluator assumes that the entire playground is a single, long use statement, potentially including newlines in the database name.

      This seems like an easy mistake for people to make who are used to working with the shell; we should warn them that what they want is use('db').

              Assignee:
              Alena Khineika
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: