I'm trying to use mongoimport to import multiple collections. I do that in a .sh file "seed.sh" which contains the following :
mongoimport --db blog --collection users --file ./db/users.json --jsonArray
mongoimport --db blog --collection articles --file ./db/articles.json --jsonArray
I use makefile in cygwin64 terminal. The first import always fails. The second always succeeds. This holds true if I change the order of the collection that is being imported. I receive the error "Error parsing command line: unknown option jsonArray". What is the problem here?