gql-dart / ferry

Stream-based strongly typed GraphQL client for Dart
https://ferrygraphql.com/
MIT License
593 stars 113 forks source link

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

Open tpucci opened 5 months ago

tpucci commented 5 months ago

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 commented 5 months ago

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