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 AggregationCursor command and emitting close.
Close the cursor, sending a AggregationCursor command and emitting close.
The result callback.
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.
Execute the explain for the cursor.
Execute the explain for the cursor.
The result callback.
Add a geoNear stage to the aggregation pipeline.
The geoNear stage document.
Add a group stage to the aggregation pipeline.
The group stage document.
Is the cursor closed.
Add a limit stage to the aggregation pipeline.
The state limit value.
Add a match stage to the aggregation pipeline.
The match stage document.
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.
Add a out stage to the aggregation pipeline.
The destination name.
Add a project stage to the aggregation pipeline.
The project stage document.
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.
Add a redact stage to the aggregation pipeline.
The redact stage document.
Resets the cursor.
Add a skip stage to the aggregation pipeline.
The state skip value.
Add a sort stage to the aggregation pipeline.
The sort stage document.
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. In that case, cursor.rewind() can be used to reset 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. In that case, cursor.rewind() can be used to reset the cursor.
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.
Add a unwind stage to the aggregation pipeline.
The unwind field name.
Generated using TypeDoc
Creates a new Aggregation Cursor instance (INTERNAL TYPE, do not instantiate directly),
http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html