Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 850 Bytes

fragments-on-composite-type.md

File metadata and controls

12 lines (8 loc) · 850 Bytes

fragments-on-composite-type

✅ The "extends": "plugin:@graphql-eslint/recommended" property in a configuration file enables this rule.

  • Category: Validation
  • Rule name: @graphql-eslint/fragments-on-composite-type
  • Requires GraphQL Schema: true ℹ️
  • Requires GraphQL Operations: false ℹ️

Fragments use a type condition to determine if they apply, since fragments can only be spread into a composite type (object, interface, or union), the type condition must also be a composite type.

This rule is a wrapper around a graphql-js validation function. You can find its source code here.