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

question: why package automatically call toArray on agregation #7

Open
jirikrepl opened this issue Jan 25, 2021 · 0 comments
Open

question: why package automatically call toArray on agregation #7

jirikrepl opened this issue Jan 25, 2021 · 0 comments

Comments

@jirikrepl
Copy link

jirikrepl commented Jan 25, 2021

Hi @sakulstra,

thank you for your fork.
I would like to ask, why you call toArray() on returned aggregation?
https://github.com/sakulstra/meteor-aggregate/blob/master/index.js#L14

In the original code, only the cursor was returned, and then it was up to user to call toArray()
https://github.com/meteorhacks/meteor-aggregate/blob/master/index.js#L11

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

No branches or pull requests

1 participant