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

  • Commit pushed on 2025-11-08 by JoviDeCroock: Merge branch 'main' into fix-crash-cases
  • Spec PR created on 2025-07-05 by JoviDeCroock
  • Commit pushed on 2025-07-05 by JoviDeCroock: Fix cases in validation that cause crashes