-
Notifications
You must be signed in to change notification settings - Fork 109
Making it possible to require all of the given field names on require-id-when-available
#1075
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
Not working with error |
Hi @milashkaJason, does your issue related to |
I got the same issue and I finally get it work by disabling the rules
|
The problem was in the parameter parserOptions: { |
I'm posting the reproduction here instead of reopening #1159. To reproduce, go to the playground and enter in
Or |
Is your feature request related to a problem? Please describe.
When using the
require-id-when-available
rule with passing an array of field names, the rule passes if one of the field names exists in the selection set. I want that all of them should exist in the selection set (all given fields are required if the fields are defined on a type).Describe the solution you'd like
Add configuration option which treating the given fields as all required.
Describe alternatives you've considered
Additional context
Migration from
apollographql/eslint-plugin-graphql
'srequired-fields
rule (migration tographql-eslint
is suggested in the README). That rule's behavior is desirable for us.The text was updated successfully, but these errors were encountered: