On 30 October 2014 at 14:06:33, Cesare (
cesare.z...@gmail.com) wrote:
> I'm using the aggregate function where sorting is a stage. I'd
> like to pass the "allowDiskUse" option: how can I do it?
Currently you can't. We should extend monger.collection/aggregate to
have one more arity that accepts options. (not sure if options existed
back when we added aggregation support, before the MongoDB 2.2.0 release).
This is a pretty trivial improvement, feel free to take a look at how the Java
client accepts options and submit a pull request ;)
--
@michaelklishin,
github.com/michaelklishin