How to write json file to mongodb - Stack Overflow
高洛峰
高洛峰 2017-05-16 13:36:08
0
1
430

I have a .json file with tens of thousands of data. I want to import it directly into mongodb. What should I do?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
某草草
mongoimport -h host:port -d dbName -c collName filename.json

mongoimport is a common command for importing json or csv into MongoDB, you can view the documentation, or help:

mongoimport --help
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template