Skip to content

fix(collection): pass batchSize to AggregationCursor #1491

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

Merged
merged 1 commit into from
Mar 3, 2017
Merged

fix(collection): pass batchSize to AggregationCursor #1491

merged 1 commit into from
Mar 3, 2017

Conversation

mbroadst
Copy link
Member

@mbroadst mbroadst commented Mar 2, 2017

@mbroadst
Copy link
Member Author

mbroadst commented Mar 2, 2017

@christkv probably not the most elegant solution, but afaict other paths leave the batchSize on the options object passed into the Cursor/AggregationCursor ctors. This particular form looks specialized to the "command" format, which indeed needs a { cursor: { batchSize: 'foo' } } form

@christkv christkv merged commit 7e6ccb2 into mongodb:2.2 Mar 3, 2017
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 this pull request may close these issues.

2 participants