I have a mongoddb DB called 'CRM' and in that there is a collection "users".
There are 50,000+ users into "users" collection.
I want to export all users documents from "users" collection to separate .json file.
I ran following command which gives me all users into a single (users.json)json file as an array of json objects.
mongoexport -d CRM -c users -o users.json --jsonArray
But, I want .JSON file for each users.
Any help would greatly be appreciated.