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

When I run :- mongo “mongodb://,,” --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 …


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

See here also ->