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 ignore list to no-unused-fields rule #2280

Open
maciesielka opened this issue May 3, 2024 · 0 comments · May be fixed by #2281
Open

Add ignore list to no-unused-fields rule #2280

maciesielka opened this issue May 3, 2024 · 0 comments · May be fixed by #2281

Comments

@maciesielka
Copy link

maciesielka commented May 3, 2024

Is your feature request related to a problem? Please describe.

The no-unused-fields rule is a great way to avoid bloat in my schema, but I'm willing to accept that bloat in some cases. For example, I'm not worried if I don't request all the relay pagination fields for every connection exposed in my schema. Currently, though, that's a dealbreaker preventing me from using this rule.

Describe the solution you'd like

Any configuration option to provide a list of fields that are allowed to be unused. I'm not particularly wedded to any format for that configuration, but I'll provide a PR shortly that showcases one option. see PR here with one possible option.

Additional context

n/a

@maciesielka maciesielka linked a pull request May 3, 2024 that will close this issue
9 tasks
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 a pull request may close this issue.

1 participant