RFC 1 / Proposal

Editorial: Fix cases in validation where technically a crash could occur due to non-existent definitions

Opened on2025-07-05
Closed on2026-02-24

At a glance

Spec PR description

We have a few cases where in validation rules we rely on a different rule ensuring that the definition for usage exists.

  • Overlapping Fields, we use a Fragment Definition looked up by a SpreadName that potentially does not exist
  • VariablesOfCorrectType, we look up a VariableDefinition from a VariableName which could potentially not exist.

In GraphQL JS we already guard against this in a few places

Timeline

February 2026
November 2025
July 2025