Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6873

Add a way to clone ReadPrefence objects

    • 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 Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None