Set the batch size for the cursor.
Set the batch size for the cursor.
The batchSize for the cursor.
Clone the cursor
Close the cursor, sending a KillCursor command and emitting close.
Close the cursor, sending a KillCursor command and emitting close.
The result callback.
Close the cursor, sending a KillCursor command and emitting close.
Close the cursor, sending a KillCursor command and emitting close.
a promise of the result
Iterates over all the documents for this cursor.
Iterates over all the documents for this cursor. As with {cursor.toArray}, not all of the elements will be iterated if this cursor had been previouly accessed. In that case, {cursor.rewind} can be used to reset the cursor. However, unlike {cursor.toArray}, the cursor will only hold a maximum of batch size elements at any given time if batch size is specified. Otherwise, the caller is responsible for making sure that the entire result can fit the memory.
The result callback.
Is the cursor closed
Is the cursor closed
true, if the cursor is closed
Add a maxTimeMS stage to the aggregation pipeline
Add a maxTimeMS stage to the aggregation pipeline
The state maxTimeMS value.
Get the next available document from the cursor, returns null if no more documents are available.
Get the next available document from the cursor, returns null if no more documents are available.
The result callback.
Returns an array of documents.
Returns an array of documents. The caller is responsible for making sure that there is enough memory to store the results. Note that the array only contain partial results when this cursor had been previouly accessed.
The result callback.
Returns an array of documents.
Returns an array of documents. The caller is responsible for making sure that there is enough memory to store the results. Note that the array only contain partial results when this cursor had been previouly accessed.
the promise of an array of results
Creates a new Command Cursor instance (INTERNAL TYPE, do not instantiate directly)
http://mongodb.github.io/node-mongodb-native/2.2/api/CommandCursor.html