Skip to content

Comments

GAP-0002 Add Field Extensions Spec#4

Open
egoodwinx wants to merge 1 commit intographql:mainfrom
egoodwinx:field-extensions
Open

GAP-0002 Add Field Extensions Spec#4
egoodwinx wants to merge 1 commit intographql:mainfrom
egoodwinx:field-extensions

Conversation

@egoodwinx
Copy link

@magicmark
Copy link
Contributor

magicmark commented Feb 12, 2026

# This is not valid GraphQL

So is the idea to compile this out of the SDL before passing to a GraphQL server?

@egoodwinx
Copy link
Author

egoodwinx commented Feb 12, 2026

So is the idea to compile this out of the SDL before passing to a GraphQL server?

Yes

@magicmark
Copy link
Contributor

I think this would benefit then from being layered on top of the soon-to-be-proposed language in the spec to clarify the difference between "human written"(?) schemas and "runtime" schemas. Not required for this to merge, but worth following along!

@benjie wdyt about a dedicated 2xxx range for "language and syntax extensions"?

side note, not directly relevant to this proposal but:

  • since this is valid syntax folks don't need to worry about existing tooling (syntax highlighters, ast parsing functions and such) breaking on schema that uses this - I think it's only invalid at runtime when validation rules get applied.
  • I wonder what should happen if a GAP proposes new syntax - and at that point you're on your own, there's no guarantee that any other tooling would work. Obviously this isn't a problem to worry about for now, and could be solvable in future I imagine with plugins (similar to babel) and whatnot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants