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

Deprecate readPreference as plain object internally

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      ReadPreference should be of type ReadPreference or string, but we currently support an object, like

      { mode: 'secondaryPreferred', tags: [] }

      We should deprecate support for the object format and only support type ReadPreference or string.

      Attachments

        Activity

          People

            Unassigned Unassigned
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: