Reimplement aggregate on top of the Java driver's DBCollection#aggregate in order to return a cursor for the results. This allows users to overcome the 16MB result size limit and specify the cursor batch size. The allowDiskUse can also be passed to Mongo, through the allow-disk-use key. The maxTime option enables setting a limit (in milliseconds) on the execution time of the query, through the max-time key. |
||
|---|---|---|
| .. | ||
| monger/test | ||
| resources/mongo/js | ||