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

Rationalize how we handle client options provided in URI vs. options struct

    XMLWordPrintable

    Details

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

      Description

      The options struct wins if you set a value in both places.

      However, it's plausible that a user would set a ReadConcern in the URI and then think that explicitly providing ClientOptions(readConcern: nil) would disable the URI ReadConcern. It does not.

      Patrick Freed suggests we consider an API similar to the Go driver where the user has to combine the URI and options structs themselves. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              katherine.wu Katherine Wu
              Reporter:
              kaitlin.mahar Kaitlin Mahar
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: