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

Add dynamicDefaults/overrides to options validator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • next
    • Affects Version/s: None
    • Component/s: None
    • None

      Some options, like readPreference, have default values that are more complicated than others, like capped. We should add a dynamicDefaults/overrides object as an argument to the options validator. This will allow us to properly set defaults with complex logic or inheritance hierarchies.

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

              Created:
              Updated:
              Resolved: