【发布时间】:2018-09-10 20:48:27
【问题描述】:
我尝试更新文档中的长整数字段。但它已更新为值“14818435007969200”而不是“14818435007969199”。
db.getCollection('title').updateMany({},
{$set:{'skillId':[NumberLong(14818435007969199)]}})
db.getCollection('title').find({})
{
"_id" : ObjectId("5853351c0274072315da2426"),
"skillId" : [
NumberLong(14818435007969200)
]
}
有什么解决办法吗?我正在使用 robomongo 0.9.0。
【问题讨论】: