How to export JSON from MongoDB using Robomongo

前端 未结 14 912
暗喜
暗喜 2021-01-30 01:37

So I do not know much about MongoDB. I have RoboMongo using which I connect to a MongoDB. What I need to do is this - there is a collection in that Mon

14条回答
  •  难免孤独
    2021-01-30 02:00

    Don't run this command on shell, enter this script at a command prompt with your database name, collection name, and file name, all replacing the placeholders..

    mongoexport --db (Database name) --collection (Collection Name) --out (File name).json
    

    It works for me.

提交回复
热议问题