lib/command_cursor.js
function(bson, ns, cmd, options, topology, topologyOptions) {
  CoreCursor.apply(this, Array.prototype.slice.call(arguments, 0));
  var state = CommandCursor.INIT;
  var streamOptions = {};

  // MaxTimeMS
  var maxTimeMS = null;

  // Get the promiseLibrary
  var promiseLibrary = options.promiseLibrary || Promise;

  // Set up
  Readable.call(this, { objectMode: true });

  // Internal state
  this.s = {
    // MaxTimeMS
    maxTimeMS: maxTimeMS,
    // State
    state: state,
    // Stream options
    streamOptions: streamOptions,
    // BSON
    bson: bson,
    // Namespace
    ns: ns,
    // Command
    cmd: cmd,
    // Options
    options: options,
    // Topology
    topology: topology,
    // Topology Options
    topologyOptions: topologyOptions,
    // Promise library
    promiseLibrary: promiseLibrary,
    // Optional ClientSession
    session: options.session
  };
}
function(bson, ns, cmd, options, topology, topologyOptions) {
  CoreCursor.apply(this, Array.prototype.slice.call(arguments, 0));
  var state = CommandCursor.INIT;
  var streamOptions = {};

  // MaxTimeMS
  var maxTimeMS = null;

  // Get the promiseLibrary
  var promiseLibrary = options.promiseLibrary || Promise;

  // Set up
  Readable.call(this, { objectMode: true });

  // Internal state
  this.s = {
    // MaxTimeMS
    maxTimeMS: maxTimeMS,
    // State
    state: state,
    // Stream options
    streamOptions: streamOptions,
    // BSON
    bson: bson,
    // Namespace
    ns: ns,
    // Command
    cmd: cmd,
    // Options
    options: options,
    // Topology
    topology: topology,
    // Topology Options
    topologyOptions: topologyOptions,
    // Promise library
    promiseLibrary: promiseLibrary,
    // Optional ClientSession
    session: options.session
  };
}
function ( bson , ns , cmd , options , topology , topologyOptions ) { CoreCursor . apply ( this , Array . prototype . slice . call ( arguments , 0 ) ) ; var state = CommandCursor . INIT ; var streamOptions = { } ; // MaxTimeMS var maxTimeMS = null ; // Get the promiseLibrary var promiseLibrary = options . promiseLibrary || Promise ; // Set up Readable . call ( this , { objectMode : true } ) ; // Internal state this . s = { // MaxTimeMS maxTimeMS : maxTimeMS , // State state : state , // Stream options streamOptions : streamOptions , // BSON bson : bson , // Namespace ns : ns , // Command cmd : cmd , // Options options : options , // Topology topology : topology , // Topology Options topologyOptions : topologyOptions , // Promise library promiseLibrary : promiseLibrary , // Optional ClientSession session : options . session } ; }
Namespace provided by the browser.
@external Readable
 
Creates a new Command Cursor instance (INTERNAL TYPE, do not instantiate directly)
@class CommandCursor
@extends external:Readable
@fires CommandCursor#data
@fires CommandCursor#end
@fires CommandCursor#close
@fires CommandCursor#readable
@return {CommandCursor} an CommandCursor instance.
Namespace provided by the browser .