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

[Feature Request] a CLI that output unused field/argument in the schema #581

Open
tpucci opened this issue Feb 14, 2024 · 1 comment
Open

Comments

@tpucci
Copy link
Contributor

tpucci commented Feb 14, 2024

Hello there 🙂

I would love that ferry, thanks to generated AST files, outputs unused part of my schema.

I can make a contribution if I have some directions.

  1. Right now, I am blocked, I don't know how to import in a single file all generated AST files... except with a builder.
  2. Then, how to compare definitions and usage ? By hand ? Is there a package I don't know that can help ?

Cheers !

@knaeckeKami
Copy link
Collaborator

Sounds interesting, but I can't give any meaningful input on that at the moment.

I do think that working on the graphql files directly would be easier though, like https://www.npmjs.com/package/@ovrsea/graphql-detect-unused-operations does for example

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