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

Allow for null document IDs in inserted and upserted documents

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.0.3
    • Component/s: None
    • Labels:
      None

      Description

      The InsertOneResult and InsertManyResult objects do not allow for null inserted IDs.

      This may not be an issue for UpdateResult, as its upsertedId field is optional; however, the lack of a accessor for "upsertedCount" (introduced in CDRIVER-2704). may make it difficult for users to determine whether an upsert actually occurred.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kaitlin.mahar Kaitlin Mahar
              Reporter:
              jmikola Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: