Skip to content
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 · Fixed by #2037
Closed

Support for options parameter in MongoCollection.aggregate #1718

tetianakh opened this issue Mar 23, 2017 · 1 comment · Fixed by #2037

Comments

@tetianakh
Copy link

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
Copy link

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

WebFreak001 pushed a commit to WebFreak001/vibe.d that referenced this issue Jan 14, 2018
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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants