Open dwesty17 opened 2 years ago
The same issue is for queries inside JS/TS files:
The fragment is exported from separate file:
I don't know is it difficult to deal with language-specific imports/exports, but some other tools like graphql-code-generator respects this syntax.
Describe the bug
When a fragment isn't colocated with the query that uses it any variables used by the query are reported as unused in the parent query.
To Reproduce See screenshots below.
Expected behavior Error shouldn't be reported as variable is being used by fragment.
Screenshots
Version and Environment Details Operation system: MacOS Monterey IDE name and version: PhpStorm 2021.2.3 Plugin version: 3.0.0