-
Notifications
You must be signed in to change notification settings - Fork 109
rule to require selecting __typename #1159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! Do you tried this rule? https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-id-when-available.md#asarray-array This rule will be renamed in next major version since not only |
Seems like it should work, but from a quick look it seems like I could only require one field (eg. not both Also, there seems to maybe be a possible feature request for the |
Please take a look yet another time to documentation, |
closing for now, feel free to ask if you still need help |
It looks like requiring
removed |
graphql-codegen
generates types that imply__typename
will always be present, but that's only the case if you actually fetch that field. Therefore, it would be nice to have a lint rule that forces all queries to select__typename
on every type.The text was updated successfully, but these errors were encountered: