2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to export a collection as json file in mongodb

How to export a collection as json file in mongodb
userimage

To export a collection as json file please try as below command:


mongoexport --db test --collection testcollection --out testcollection.json

Answer is