Print warning when the user specifies a database but no host on the command line

XMLWordPrintableJSON

    • 2
    • None
    • Developer Tools

      A user might type something like mongosh localhost and reasonably expect it to connect to localhost as the hostname, rather than the localhost database on 127.0.0.1:27017. We've inherited this behavior from the legacy shell, but it is definitely confusing and trips up even expert users of mongosh, so it seems like a good idea to print a warning when the user specifies only a database name but no hostname.

            Assignee:
            Unassigned
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: