当前位置: 动力学知识库 > 问答 > 编程问答 >

mongodb - Mongo Query is success but updated record is zero

问题描述:

The following query works fine

db.employee.update(

{_id: ObjectId("57da8822059a7f847ccc4f68"), fileAccessKey: "Test/Emp (1-100)/.*"},

{ $set: { isWorking: true}},

true,

true

);

Matches found but isWorking is not updated

WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 0 })

Any suggestion.

Thanks.

分享给朋友:
您可能感兴趣的文章:
随机阅读: