Shell doesn't show the db that i use in compass

How to import the documents that are in compass to shell, the database in the compass is not listed in shell

You are probably not connected to the same server in compass and from the shell.

What are the connections hosts and ports from both?


I believe @steevej-1495 is right. Please use this command to connect to the cluster:

mongo "mongodb://,," --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

José Carlos

Thanks for your response @steevej-1495 and @jcarlosgarcia the command worked.