Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/update/inc/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 LBBROWSER
*Referrer*: https://www.baidu.com/link?url=ZDsqoT9w-T9Sx1hzrSckMX-Rjm2nTNQWD2UIHcEp9yj8BlJH3a4PGzZqJNjsWPvxHjbIHZ_oOCAnlaka9Yp-2n0RlmjJKwx92cqJTnICzCK&wd=&eqid=a8558a3c000030780000000555914c56
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/update/inc
*Location*: http://docs.mongodb.org/manual/reference/operator/update/inc/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 LBBROWSER *Referrer*: https://www.baidu.com/link?url=ZDsqoT9w-T9Sx1hzrSckMX-Rjm2nTNQWD2UIHcEp9yj8BlJH3a4PGzZqJNjsWPvxHjbIHZ_oOCAnlaka9Yp-2n0RlmjJKwx92cqJTnICzCK&wd=&eqid=a8558a3c000030780000000555914c56 *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/operator/update/inc
Description
{
"_id" : ObjectId("55912f0f93a02b3632cdde86"),
"className" : "com.boostor.homyi.model.cms.question.Question",
"busId" : "5506a0d31421c3121270fc8b",
"title" : "问卷调查",
"startDate" : ISODate("2015-06-29T12:00:35.571Z"),
"endDate" : ISODate("2015-06-29T12:00:35.578Z"),
"isgz" : 1,
"isShowAnswer" : 0,
"isShowData" : 0,
"num" : 1,
"isShowDf" : 1,
"answerYesNote" : "恭喜您答对啦",
"answerYesUrl" : "",
"answerYesTags" : [
"a",
"b"
],
"answerNoNote" : "继续努力吧,孩纸",
"answerNoUrl" : "",
"answerNoTags" : [
"a",
"b"
],
"tests" : {
"1435577987554" : {
"itemNo" : "问题1",
"title" : "【单选】选项一",
"indexNo" : "1435577987554",
"type" : 1,
"optionType" : 1,
"score" : 0,
"items" : {
"1435577987555" :
,
"1435577987556" :
,
"1435577987557" :
,
"1435577987558" :
},
"answers" : [
"1435577987555"
]
},
"1435577987559" : {
"itemNo" : "问题2",
"title" : "【多选】测试二",
"indexNo" : "1435577987559",
"type" : 1,
"optionType" : 2,
"score" : 0,
"items" : {
"1435577987560" :
,
"1435577987561" :
,
"1435577987562" :
},
"answers" : [
"1435577987560",
"1435577987561"
]
}
}
}
///////////////////////////////////////////////////////////
I want update like :
inc(tests.items."itemKey".count,1)
Hao to update?Give me some help,please!!!!