Skip to content

Proposal for aggregation queries #3

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

Closed
wants to merge 4 commits into from
Closed

Proposal for aggregation queries #3

wants to merge 4 commits into from

Conversation

kulshekhar
Copy link

No description provided.

Additionally, the presence of this parameter should modify the queries as follows:

- In MongoDB, execute the `.distinct()` method instead of the usual `find` query
- In Postgres, use `DISTINCT(fieldname)` instead of the usual list of field names in the `find` query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implementation seems to be trivial :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully there won't be any hidden issues :)

I just realized I haven't considered what happens if both keys and distinct are set. And what if include is set?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added a suggestion in the proposal to handle the presence of these parameters.

@kulshekhar kulshekhar changed the title Proposal for 'distinct' query Proposal for aggregation queries Nov 24, 2016
@kulshekhar kulshekhar closed this Dec 28, 2016
@kulshekhar kulshekhar deleted the patch-1 branch December 28, 2016 07:22
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