graphql-spec icon indicating copy to clipboard operation
graphql-spec copied to clipboard

Allow `schema @behavior(onError: ...)` without explicit root operations

Open benjie opened this issue 7 months ago • 1 comments

This PR is rebased on #1163. It comprises of two commits. The first is from:

  • #1166

The second includes the adjustments necessary to relate to:

  • #1163

Please see #1166 for details.

benjie avatar Apr 30 '25 13:04 benjie

I've pulled the core of this out and raised it as a clean PR against main:

  • #1166

benjie avatar May 01 '25 09:05 benjie

Lee was very hesitant to allow a "naked" schema, and feels that it would be ambiguous: does it mean that no operations are defined, or only the defaults? Since this is purely aesthetic and to try and match the behavior of the other types in the schema, I'm going to close it for now.

benjie avatar Jul 03 '25 13:07 benjie