fragment-matcher fails with @stream/defer directives

Author: mariusudCreated Jul 10, 2026Updated Aug 31, 2026
Labelswaiting-for-answer

Which packages are impacted by your issue?

@graphql-codegen/fragment-matcher

Describe the bug

The fragment-matcher does not successfully generate schema when @defer/stream is active, presumably because it runs execute()

Steps to Reproduce the Bug or Issue

Try to run fragment-matcher with @defer or stream active

Expected behavior

Successful fragment generation

Screenshots or Videos

    ✖ The provided schema unexpectedly contains experimental directives (@defer or @stream). These directives may only be utilized if experimental execution features are explicitly
       enabled.
  ✖ One or more errors occurred, no files were generated. To allow output on errors, set config.allowPartialOutputs=true

Platform

  • @graphql-codegen/fragment-matcher: 7.1.0
  • @graphql-codegen/cli: 7.2.0
  • graphql: 17.0.0-alpha.9

Source: dotansimha/graphql-code-generator