Just use the compass gui.
Don’t waste your time on trying to figure out Mosh’s mistake. It’s his fault.
Use the gui to just manually make the new database called mongo-exercises.
Then manually call the collection “courses” - afterwards, just import the file using the GUI.
Don’t waste your time - Mosh should be ashamed