【发布时间】:2021-11-11 03:09:12
【问题描述】:
我的 json 文件中有这样的数据 -
[{
"end_year": "",
"intensity": 6,
"sector": "Energy",
"topic": "gas",
"insight": "Annual Energy Outlook",
"url": "http://www.eia.gov/outlooks/aeo/pdf/0383(2017).pdf",
"region": "Northern America",
"start_year": "",
"impact": "",
"added": "January, 20 2017 03:51:25",
"published": "January, 09 2017 00:00:00",
"country": "United States of America",
"relevance": 2,
"pestle": "Industries",
"source": "EIA",
"title": "U.S. natural gas consumption is expected to increase during much of the projection period.",
"likelihood": 3
}]
我想使用 nodeJS 将它插入到我的 mongoDB 中。
【问题讨论】:
-
Stack Overflow 上不允许出现重复问题。请在将来发布之前研究您的询问。与NodeJS: saving JSON to MongoDB 重复