mongo shell commands are needed to copy a collection from a database on a remote server to local database. Following the instructions as per the docs, The commands to login to the remote database are:
mongo "mongodb://cluster0-shard-00-00-oko1k.mongodb.net:27017,cluster0-shard-00-01-oko1k.mongodb.net:27017,cluster0-shard-00-02-oko1k.mongodb.net:27017/admin?replicaSet=Cluster0-shard-0" --ssl --username <myName> --password
then type my password, then:
Cluster0-shard-0:PRIMARY> use myDatabase
switched to db myDatabase
Cluster0-shard-0:PRIMARY> mongodump -d myDatabase
2017-04-30T07:10:57.698+1000 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:13
How can I move forward from here in order to get myCollection to my local database? thx