-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
We recently ran into an issue where a missing id field in a selection caused a cryptic error to be thrown in production that caused an incident.
After that incident, I looked into graphql-eslint, specifically the require-id-when-available rule. Turning it on did expose a couple areas where we missed adding id-s, but it does not report any problem on the fragment that caused our incident.
After peeking into the source, I see that it does, in fact, not run on FragmentDefinition.
Would it be possible to also check if ids are included for fields in a fragment definition?
Stephen2
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed