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

Convert InsertManyResult to BulkWriteResult when insertMany throws BulkWriteError

    XMLWordPrintable

    Details

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

      Description

      InsertMany is implemented as a bulk write and is meant to throw a BulkWriteError as per the crud spec. We'll need to convert the InsertManyResult to a BulkWriteResult so it can be included in a BulkWriteError thrown by insertMany().

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: