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

Add compatibility support for keyf in group command #48

Merged
merged 1 commit into from
Apr 8, 2013

Conversation

benediktarnold
Copy link
Contributor

Hi,
I'm new to mongojs and relatively new to mongo at all. In the mongo shell I issued a group command as documented on http://docs.mongodb.org/manual/reference/method/db.collection.group/ with a function creating the grouping key. Therefore I used the keyf parameter and passed in a function. Back in my node.js project I copy and pasted the group command from the mongo shell and it did not work since the keyf parameter is not used by mongojs.

Since mongojs should be compatible with mongo, I created a small compatibility patch to support both key and keyf.

Cheers,
Ben

@mafintosh
Copy link
Collaborator

Looks great! Thank you for your contribution.

mafintosh added a commit that referenced this pull request Apr 8, 2013
Add compatibility support for keyf in group command
@mafintosh mafintosh merged commit f0942d5 into mongo-js:master Apr 8, 2013
@mderazon mderazon mentioned this pull request Jun 24, 2015
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