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

Limit options which are passed to the generic command helper

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Operations Layer
    • Labels:
      None
    • Not Needed

      The CommandOperation resolves types relevant to command construction in its constructor, but ultimately passes the operation options to the generic command helper, thus requiring the types to be compatible which is not what we want. An example of the problem this causes is that the CommandOperation subclass should accept "WriteConcern"-like options (w, j, writeConcern), but the generic command helper should only accept a properly constructed WriteConcern type.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: