Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19278

How to update multiple array elements at once.

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      "helparray" : [

      { "helpid" : 1, "state" : true, "_id" : ObjectId("5595213af20e4d481e31501e") }

      ,

      { "helpid" : 2, "state" : true, "_id" : ObjectId("55952141f20e4d481e31501f") }

      ,

      { "helpid" : 3, "state" : true, "_id" : ObjectId("55952146f20e4d481e315020") }

      ]

      This is my helparray.I want to update all state to false at once.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: