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

aggregate broken with MongoDB 3.6 #2036

Closed
WebFreak001 opened this issue Jan 14, 2018 · 0 comments
Closed

aggregate broken with MongoDB 3.6 #2036

WebFreak001 opened this issue Jan 14, 2018 · 0 comments

Comments

@WebFreak001
Copy link
Contributor

@WebFreak001 WebFreak001 commented Jan 14, 2018

object.Exception@../.dub/packages/vibe-d-0.8.2/vibe-d/mongodb/vibe/db/mongo/collection.d(323): Aggregate command failed: The 'cursor' option is required, except for aggregate with the explain argument

for any query that works in the command line.

WebFreak001 added 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant