Add a way to clone ReadPrefence objects

XMLWordPrintableJSON

    • Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a Compass Developer I want to be able to make a clone of a ReadPrefence object so that I can remove the tags.

      Follow Up Requirements

      • Please let the Compass team know so we can update this code: https://github.com/mongodb-js/compass/pull/6818
        function readPreferenceWithoutTags(readPreference: ReadPreference) {
          return new ReadPreference(readPreference.mode, undefined, readPreference);
        }
        

              Assignee:
              Unassigned
              Reporter:
              Le Roux Bodenstein
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: