graphql-inspector
graphql-inspector copied to clipboard
Coverage stats does not calculate queries, mutations and subscriptions.
Issue workflow progress
Progress of the issue based on the Contributor Workflow
- [ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
Make sure to fork this template and run
pnpm generate
in the terminal.Please make sure the Codegen and plugins version under
package.json
matches yours. - [ ] 2. A failing test has been provided
- [ ] 3. A local solution has been provided
- [ ] 4. A pull request is pending review
Describe the bug
Coverage calculates only root types of queries, mutations and subscriptions when should calculate fields of those root types.
To Reproduce Steps to reproduce the behavior:
Schema:
Root of issue:
Expected result: Each mutation inside Mutation type should be counted.
Environment:
- OS:
-
@graphql-inspector/...
: 4.0.3 -
graphql
: 16.6.0 - NodeJS: 18
Additional context
Hey @osolomin90, thank you for this issue! Any chance you want to try fix it?
Hey @osolomin90, thank you for this issue! Any chance you want to try fix it?
@TuvalSimha I want, but I am not sure if I will have time to sit and solve it...
Hey @osolomin90, thank you for this issue! Any chance you want to try fix it?
@TuvalSimha Hey, I tried to fix it) https://github.com/kamilkisiela/graphql-inspector/pull/2731
Hey @osolomin90 thank you very much! i will take a look soon and update as well!
@TuvalSimha, I was wondering which release will include stats changes?