-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
It would be useful to know which parts of the schema are in use on production apps by logging which fields are requested. I'd like to build something similar to what @leebyron describes here: https://youtu.be/5pMDd1t2thc?t=35m30s
I think for a given query and schema, I would want a map of each type that is used in the query and the fields that are requested on that type. What is the best way to go about it?
A few ideas are
- A way to "wrap" the internals that invoke the resolve method, and keep a tally of each time its called on which types
- Analyze the AST of the entire query and derive it from this. I don't think the AST is schema aware so you can't map the fields back to their types
What do you recommend?
Metadata
Metadata
Assignees
Labels
No labels