$push at top level is broken

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.foo.drop()
      true
      > db.foo.update(

      { _id : "id1" }

      , { $push :

      {mid:1, msg:"msg1", t:11}

      } , true )
      > db.foo.find()

      { "_id" : "id1", "mid" : [ 1 ], "msg" : [ "msg1" ], "t" : [ 11 ] }

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: