The lecture video told me to connect to sandbox using the uri format like this: --uri “mongodb+srv://:…” but a closer watch seems like the format is copied from the connection tab in sandbox page and looks like this ““mongodb+srv://sandbox.h2djq.mongodb.net/myFirstDatabase” --username m001-student” so I was wondering why that is.
Secondly, I would like to ask what is the querry for count distinct (that is in sql). In mongodb I have tried the find with count function and the distinct with length function. Is there a way to combine these two to get the count distinct like in SQL?
Thank you very much.