MongoDB - 在debian 8上插入操作版本3.2.8之后_id仍然为null

时间:2017-08-26 10:18:43

标签: javascript node.js mongodb debian

当我运行db.collection.insert({ "_id": null, "test": "Test config text......" })

插入后_id属性保持为空,应该生成它。这只发生在debian上。在运行相同代码的Mac上没有问题。

有没有这方面的设置?

0 个答案:

没有答案