[DOCS-5741] Comment on: "manual/reference/operator/update/inc.txt" Created: 29/Jun/15  Updated: 03/Nov/17  Resolved: 06/Jul/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 8 years, 32 weeks, 2 days ago

 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" :

{ "itemNo" : "1", "indexNo" : "1435577987555", "itemTitle" : "选项一", "count" : 0 }

,
"1435577987556" :

{ "itemNo" : "2", "indexNo" : "1435577987556", "itemTitle" : "选项二", "count" : 0 }

,
"1435577987557" :

{ "itemNo" : "3", "indexNo" : "1435577987557", "itemTitle" : "选项三", "count" : 0 }

,
"1435577987558" :

{ "itemNo" : "4", "indexNo" : "1435577987558", "itemTitle" : "选项四", "count" : 0 }

},
"answers" : [
"1435577987555"
]
},
"1435577987559" : {
"itemNo" : "问题2",
"title" : "【多选】测试二",
"indexNo" : "1435577987559",
"type" : 1,
"optionType" : 2,
"score" : 0,
"items" : {
"1435577987560" :

{ "itemNo" : "1", "indexNo" : "1435577987560", "itemTitle" : "选项一", "count" : 0 }

,
"1435577987561" :

{ "itemNo" : "2", "indexNo" : "1435577987561", "itemTitle" : "选项二", "count" : 0 }

,
"1435577987562" :

{ "itemNo" : "3", "indexNo" : "1435577987562", "itemTitle" : "选项三", "count" : 0 }

},
"answers" : [
"1435577987560",
"1435577987561"
]
}
}
}

///////////////////////////////////////////////////////////
I want update like :
inc(tests.items."itemKey".count,1)

Hao to update?Give me some help,please!!!!



 Comments   
Comment by Kay Kim (Inactive) [ 06/Jul/15 ]

Emailed reporter with a possible answer to his question (in so far as dot notation) as well as steering the user to stackoverflow as a better forum for questions like his.

Generated at Thu Feb 08 07:50:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.