使用Mongoose进行模型更新后,将返回以下数据:
{
ok: 1,
nModified: 1,
n: 1,
lastOp: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1463881720 },
electionId: 573e2656b8b7cd4def436dd8
}
什么是 electionId 字段?我在Mongoose Documentation中找不到任何东西。
答案 0 :(得分:0)
根据Write Commands Specification(情况字段),感谢@ 4832190的评论:
<script type="text/javascript" src="scripts/jquery-3.3.1.js"></script>
:仅MONGODB。代表最后一次主要选举ID的可选ObjectId字段。