Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-196

Handle setting keys that already exist in a document

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.0.4
    • None
    • None

    Description

      Right now, we don't check for a key's existence before appending it to the bson_t. This leads to unexpected results for users who are trying to overwrite values in a Document. We should check for a key's existence first and if it is already there, then create a new bson_t with the value replaced. 

      Attachments

        Issue Links

          Activity

            People

              kaitlin.mahar@mongodb.com Kaitlin Mahar
              kaitlin.mahar@mongodb.com Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: