Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate only one subscription root field #5189

Open
rmosolgo opened this issue Dec 9, 2024 · 0 comments
Open

Validate only one subscription root field #5189

rmosolgo opened this issue Dec 9, 2024 · 0 comments

Comments

@rmosolgo
Copy link
Owner

rmosolgo commented Dec 9, 2024

The GraphQL spec says that a subscription operation should only have one selection (after being merged -- the same selection could be spread over different AST nodes) and that it shouldn't be an introspection field.

Here's the spec: https://spec.graphql.org/draft/#sec-Subscription-Operation-Definitions

This isn't implemented in GraphQL-Ruby yet but it could be -- and it would simplify runtime tracking of subscriptions.

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

No branches or pull requests

1 participant