Event emitter The defined events on documents including:
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.
Each
The result callback.
Is the cursor closed.
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.
The read() method pulls some data out of the internal buffer and returns it. If there is no data available, then it will return null.
Optional argument to specify how much data to read.
Resets the cursor.
Set the ReadPreference for the cursor.
The new read preference for the cursor.
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.
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.
This is useful in certain cases where a stream is being consumed by a parser, which needs to "un-consume" some data that it has optimistically pulled out of the source, so that the stream can be passed on to some other party.
Chunk of data to unshift onto the read queue.
Generated using TypeDoc
CommandCursor.
http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html