🎉 Welcome to the new GraphQL-ESLint website. Try new playground page →
Unique Field Definition Names


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

  • Category: Schema
  • Rule name: @graphql-eslint/unique-field-definition-names
  • Requires GraphQL Schema: false ℹī¸
  • Requires GraphQL Operations: false ℹī¸

A GraphQL complex type is only valid if all its fields are uniquely named.

This rule is a wrapper around a graphql-js validation function.