Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 723 Bytes

known-directives.md

File metadata and controls

12 lines (8 loc) · 723 Bytes

known-directives

✅ 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.