Combing Inc, silent fail

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: API
    • None
    • Environment:
      CSharp, mono and .net
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Applying:
      Builders<T>.Update.Inc( "id",1).Inc("id",-1)
      To:

      {id:0}

      Result:

      {id:-1}

      Combining Inc doesn't seem to work, it will overwrite the last inc on the same field, this is made more troublesome by the inability to update a collection with a BsonDocument as the update so you can't get round this.

      There seems to be no error and no way of querying the UpdateDefinition to see if an existing Inc for the field exists.

            Assignee:
            Unassigned
            Reporter:
            Dwayne Bull
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: