poiati/gmongo

cursor for aggregates >16MB?

jgrivolla opened this issue · 1 comments

In the Java driver you can specify using a cursor as an AggregationOption, but I'm not sure how to do this in gmongo. By default it doesn't use a cursor, and aggregation results are therefore limited to 16MB.

You just need to pass an AggregationOption instance as the second parameter to DBCollection#aggregate gmongo method.