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

can't push and set in one operation

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Query

      > t.find()
      { "_id" : 3, "version" : 1, "versionsCount" : 1, "name" : "TestName1", "versions" : [

      { "version" : 1, "versionFromInstant" : 33, "versionToInstant" : 99, "name" : "TestName1", "value" : "A" }

      ] }
      > q

      { "_id" : 3, "versions.version" : 1 }

      > u
      {
      "$set" :

      { "version" : 2, "name" : "NEWNAME", "versions.$.versionToInstant" : 1000 }

      ,
      "$inc" :

      { "versionsCount" : 1 }

      ,
      "$push" : {
      "versions" :

      { "z" : "anewone" }

      }
      }
      > t.update(q,u)
      have conflicting mods in update

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            24 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: