How to export JSON from MongoDB using Robomongo

前端 未结 14 760
暗喜
暗喜 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 01:59

    If you want to use mongoimport, you'll want to export this way:

    db.getCollection('tables')
      .find({_id: 'q3hrnnoKu2mnCL7kE'})
      .forEach(function(x){printjsononeline(x)});
    

提交回复
热议问题