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

Not an issue but a feature request - Sorting query fields #698

Open
kuda1992 opened this issue Dec 8, 2022 · 1 comment
Open

Not an issue but a feature request - Sorting query fields #698

kuda1992 opened this issue Dec 8, 2022 · 1 comment

Comments

@kuda1992
Copy link

kuda1992 commented Dec 8, 2022

This is not an issue however I was wondering is there some tool which can sort the queries alphabetically.

for example sorting the fragment
fragment PayslipPerson on Person { earnings contributions deductions }

I am currently using graphql-eslint but it does not sort the queries only the schema.

@dimaMachina
Copy link

@kuda1992 graphql-eslint sort selections https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/alphabetize.md#correct-2

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

2 participants