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

Simplify cursor constructor

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

      The current signature for the Cursor constructor is:

      function(bson, ns, cmd, options, topology, topologyOptions)
      

      which is highly redundant because bson and topologyOptions are both stored with the passed in topology. In order to make this class (and its various subclasses) easier to refactor, and generally reason about, the signature should be reduced to:

      function(topology, ns, cmd, options)
      

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

              Created:
              Updated:
              Resolved: