graphql-client
graphql-client copied to clipboard
How to find unused fields or objects?
Hello,
I'm using the gem in a situation where a GraphQL API is exposed for a single application, and I'd like to be only exposed required the data.
I'm thinking of using the fact that queries are statically declared to list all data that are needed, maybe even comparing these info to what's defined in the schema to find fields and objects that are exposed but not needed, so I could remove them from the GraphQL API.
Is there a way to do this with the gem that is not too hackish ? I don't think it's something that should be available out of the box in the gem but I'd like to know how to implement it in a reasonable way.
Thanks