Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5741

Comment on: "manual/reference/operator/update/inc.txt"

    XMLWordPrintableJSON

Details

    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!!!!

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 32 weeks, 2 days ago