
MongoDB interrupts the operation at the earliest following interrupt point. MaxTimeMS specifies a cumulative time limit in milliseconds for processing operations on the cursor. NameĪllowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >). Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.


The number of documents to return per batch.

The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST). Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2 NameĪrray containing all the aggregation framework commands for the execution.
