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

Allow multiple map calls #1521

Merged
merged 6 commits into from Jun 12, 2017
Merged

Allow multiple map calls #1521

merged 6 commits into from Jun 12, 2017

Conversation

Robbilie
Copy link
Contributor

@Robbilie Robbilie commented Jun 8, 2017

before, calling map multiple times on a cursor resulted in only the last map transform to be applied.

before, calling map multiple times on a cursor resulted in only the last map transform to be applied.
@christkv
Copy link
Contributor

christkv commented Jun 8, 2017

Do you mind adding a test case to show the usage pattern you are trying to fix. Also arrow functions cannot be used as we support node all the way back to 0.10.x in the 2.x branch.

@Robbilie
Copy link
Contributor Author

Robbilie commented Jun 8, 2017

i will try :)
(i hope filter/reduce are supported in that version xD)

copy other map test and show how multiple maps should work
@Robbilie
Copy link
Contributor Author

Robbilie commented Jun 8, 2017

is that ok?
EDIT: i guess travis will let me know ^^
EDIT: hm seems like there is still something wrong…

since the handling of that is in the mongodb-core library we will use a different approach, wrapping the methods
@christkv
Copy link
Contributor

christkv commented Jun 9, 2017

@mbroadst what do you think ?

@mbroadst
Copy link
Member

LGTM

@christkv christkv merged commit 2fcf951 into mongodb:2.2 Jun 12, 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
3 participants