-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: CLI Module, UI / UX
-
2
-
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.