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

Separate options validation from application of default options

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

      The options validator currently validates user-provided options and applies default options, including dynamic defaults like readPreference. We should separate this logic so every operation makes a call to validate and then a call to applyDefaults. This enables us to skip validate and only use applyDefaults at the bottom level of operations (collection_ops.js, db_ops.js, mongo_client_ops.js, etc.).

            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: