Simplify cursor constructor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: