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

@sortBy: aggregation support #112

Open
LastDragon-ru opened this issue Jan 8, 2024 · 0 comments
Open

@sortBy: aggregation support #112

LastDragon-ru opened this issue Jan 8, 2024 · 0 comments
Labels
pkg: graphql scope: feat New feature or request

Comments

@LastDragon-ru
Copy link
Owner

LastDragon-ru commented Jan 8, 2024

Relations can be used for sorting. So should not be a problem to reuse the code to sort by aggregated values. Also, would be good limit avaialable functions for each type (inspired by nuwave/lighthouse#2487).

Probably the best/easy way is to add a new extra operator aggregate. Need to think how it should look, especially if we want type filtering.

https://www.db-fiddle.com/f/7DpjCeQyNMUTXx6gTHCRVv/0

@LastDragon-ru LastDragon-ru added scope: feat New feature or request pkg: graphql labels Jan 8, 2024
@LastDragon-ru LastDragon-ru added this to the Next milestone Jan 8, 2024
@LastDragon-ru LastDragon-ru removed this from the 6.x milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: graphql scope: feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant