This one gives an error when I try connecting with Mongo shell

When I run :- mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

It gives me error -->

2018-11-18T01:54:28.221+0530 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6

PLease help.

Thanks Soumalya

Where and how are you running this command?

It looks like you are redirecting the input of the shell as it things you are trying to run JavaScript code.

Thanks Steve. Issue with my command. It’s fixed now …

Cheers,
Soumalya

Nah… @Soumalya_96627 was running the “mongo” shell command inside the Mongo shell.

See here also ->