MongoDB Shell SyntaxError: unexpected token: string literal

Last time I connected to the Atlas cluster I used something like this from Mongo Shell (and it worked):

mongo mongodb+srv://m999student:m999password@abc-xyz123.mongodb.net/testdb

Note that there are no quotes around the connect string.

4 Likes