New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for options parameter in MongoCollection.aggregate #1718

Closed
tetianakh opened this Issue Mar 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tetianakh

tetianakh commented Mar 23, 2017

Mongodb db.collection.aggregate accepts 2 parameters: aggregation pipeline, and options. I need to set {allowDiskUse: true} for my aggregation pipelines, but as far as I can tell from the source and the documentation, MongoCollection.aggregate accepts only aggregation pipeline, and there's no way to pass the second argument.

Is there a way to pass the options argument to the MongoCollection.aggregate?

@pete-fab

This comment has been minimized.

pete-fab commented Aug 21, 2017

Hi.
I have the same issue. Is there a way to pass options into MongoCollection.aggregate?

WebFreak001 added a commit to WebFreak001/vibe.d that referenced this issue Jan 14, 2018

rewrite MongoCursor to a more extensible approach
fix vibe-d#2036, fix vibe-d#1718

cursors now only need the DocType as template argument, the find specific arguments are now in the constructor. Aggregate now uses Cursors and find was altered to the new API. There is a deprecated compatibility alias which will work in most cases (except if only Q was given and differs from what R should be, which shouldn't even be done anyway)

The new public API for aggregate is a lot more like the shell now, but still supports the old way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment