I am an issue in mongoimport for mongoDB ATLAS clusters but not able to find any solution.
I am following the below steps:
1. I have created the free account in mongodb atlas
2. I have then created a cluster
3. Then i have added in IP Whitelist
4. Then i am using normal command prompt(not mongo shell)
5. I am then using command cd and going to C:\mongodb\bin
6. Next step i am copying the code (mongo "mongodb://cluster0-shard-00-00-..........) from "Connect via the Mongo Shell"
7. I am now connected to the cluster(Cluster0-shard-0:PRIMARY>)
8. Next step i am using mongoimport command :
mongoimport --host cluster0-shard-00-00-xxxx.mongodb.net:27017 --db starwarsdb --type json --file ~c:\Users\xxxx\Downloads\starwars.json --jsonArray --authenticationDatabase admin --ssl --username --password
9. I am getting the below error:
2017-10-22T16:05:48.994-0400 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:14
enter image description here
I am not able to figure out the solution. Your help will be highly appreciated.