-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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)