在我的mongodb
数据库集合中有一个document
,其格式如下:
{
"_id": {
"$oid": "18ad45c2c081aa"
},
"some_date": "Tue Jan 25 01:41:35 +0000 2018",
"id": 1077378793470193664
}
但是,当我使用mongoexport
导出我的集合时,下载的json文件的文档格式如下:
{
"_id":{
"$oid":"18ad45c2c081aa"
},
"some_date":"Tue Jan 25 01:41:35 +0000 2018",
"id":{
"$numberLong":"1077378793470193664"
}
}
这是因为
但我需要我的数据和前一种格式完全一样。我在mongodb文档中找不到mongoexport或here的解决方案
如何以与数据库中相同的格式获取导出的数据
目前没有回答
相关问题 更多 >
编程相关推荐