Skip to content

Validate only one subscription root field #5189

@rmosolgo

Description

@rmosolgo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions