✅ The "extends": "plugin:@graphql-eslint/recommended"
property in a configuration file enables this rule.
- Category:
Validation
- Rule name:
@graphql-eslint/known-directives
- Requires GraphQL Schema:
true
ℹ️ - Requires GraphQL Operations:
false
ℹ️
A GraphQL document is only valid if all @directives
are known by the schema and legally positioned.
This rule is a wrapper around a
graphql-js
validation function. You can find its source code here.