-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
Right now, subscribe and execute are two functions. And there are some issues with that.
- Semantically, subscription is a type of execution. In the spec, Query, Mutation and Subscription are on the same level. Subscription is not an outlier.
- When I get a Document, I need to go through validations to get the Operation, and then call
execute
orsubscribe
based on Operation's type, and they go through a similar validation, resulting in duplicated work.
jasonkuhrt