Subscriptions not working with custom input types
See original GitHub issueDescription Subscription notifications are not being received by the client when the subscription’s argument is a custom input type.
To Reproduce
- Modify the AspNetCore.StarWars example server
onReview
subscription to take a custom input type. - Start the AspNetCore.StarWars example server.
- Send an
onReview
subscription request using the new input type in GraphQL Playground. - Send a
createReview
mutation as normal.
See commit afillebrown@76b4f45 in my HotChocolate fork for a modified version of the AspNetCore.StarWars example server demonstrating the issue.
Expected behavior Subscription notifications should be received by the client when the subscription’s input type is a custom input type.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Subscriptions not working with custom input types #949
Description Subscription notifications are not being received by the client when the subscription's argument is a custom input type.
Read more >Tutorial: GraphQL Input Types and Custom Resolvers
This is part 5 of our full-stack GraphQL + React Tutorial that guides you through creating a messaging application.
Read more >How to add Validator to Custom Input from Subscribe?
Create a validation function. I here pass the form controlname and an observable of the http request result as parameters. For fetching the ......
Read more >Vue custom input
The happy custom input component doesn't mutate its prop but emits the changes to the parent component. This is enough to make it...
Read more >Subscriptions
Using a custom PubSub system ... By default, TypeGraphQL uses a simple PubSub system from graphql-subscriptions which is based on EventEmitter. This solution...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you!
The fix is now included in: https://github.com/ChilliCream/hotchocolate/releases/tag/10.0.0-preview.50