Script to export all collections from a MongoDB database to a .json file.
$ npm install
$ npm start
- The documents.json file will be created in the root directory with all the collections of your database
- In config.js change the values for your scenario