[2020-10-01] Add validation rule to forbid introspection fields in the root of a GraphQL subscription #548
Labels
Action item 🎬
Ready for review 🙌
Action Item issues are reviewed and closed during Working Group meetings.
__typename
at the root of a subscription operation throws an error. It doesn't make sense to support it. It was agreed that since it already doesn't work, adding an explicit validation rule to forbid it would make sense and be "non-breaking".Original PR here: graphql/graphql-spec#776
TODO:
PR to spec
PR to GraphQL.js
assignee(s): @benjie
source: https://github.com/graphql/graphql-wg/blob/master/notes/2020-10-01.md#__typename-and-subscriptions-5m-benjie
Note: Action Item issues are reviewed and closed during Working Group
meetings.
The text was updated successfully, but these errors were encountered: