Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-444

MongoCollection<T>.FindAndModify not returning modified document when returnNew set to true

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.4
    • None
    • Windows 7 Ultimate 64-bit, 24GB ram, Dell Precision T3500

    Description

      When calling MongoDB.Driver.FindAndModifyResult, with returnNew set to true, the FindAndModifyResults shows the following. ModifiedDocuement should not be null

      _command { "findAndModify" : "Swine", "query" :

      { "Id" : "4f84ba26b71e9a2324104c9e" }

      , "update" : { "$set" :

      { "RFID" : "empty" }

      }, "new" : true } MongoDB.Driver.IMongoCommand

      {MongoDB.Driver.CommandDocument}

      _response

      { "value" : null, "ok" : 1.0 }

      MongoDB.Bson.BsonDocument

      Ok true bool

      ModifiedDocument null MongoDB.Bson.BsonDocument

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            paulbrower Paul Brower
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: