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://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