Getting started with GraphQL Subscriptions in .NET
ฝัง
- เผยแพร่เมื่อ 18 ต.ค. 2022
- Hi everyone,
I am Michael, and in this video, we will check out how we can implement GraphQL subscriptions in dotnet with Hot Chocolate. We will look at a couple of ways we can approach subscriptions. Join me for this first foray into the world of real-time data with GraphQL.
Don't forget to comment, like, and subscribe ;)
Please, if you like our project, give us a star on GitHub:
github.com/ChilliCream/hotcho...
Example: github.com/ChilliCream/hotcho...
StrawberryShake version used in this video: www.nuget.org/packages/HotCho...
Workshops:
NDC Minnesota 2022 - bit.ly/ndc-minnesota
NDC London 2023 - bit.ly/ndc-london-graphql
Social Media:
Follow me on GitHub: bit.ly/michaelGitHub
Follow me on Twitter: bit.ly/michaelTwitter
Connect on LinkedIn: bit.ly/michaelLinkedIn
Web:
chillicream.com
#dotnet #graphql #subscriptions #hotchocolate
In v13 you added support for SSE , but all the examples use Websockets. How do you use SSE with Hot Chocolate for subscriptions?
It is awesome! Thank you!
What would be the right way to subscribe on listening changes for one specific book? Subscription than should have argument? How to notify clients for specific book changes? Is that different topic?
Thanks for the great video. Quick question though on InMemorySubscription. This is not scalable right? if we have a k8s pod and make replication of it, then the connections can be duplicated right?
how can do delete in GraphQl?
Will the Postgres Provider solve load balanced subscriptions? I have 2 AWS EC2 instances, and when events are returned, it's only to devices subscribed on the respective instance and not all. I'm hoping the Postgres Provider will solve this by events triggered by the database and then sending to all devices/instances subscribed. Thanks!
Hi Michael, what if we have a lot of mutations. how we can make it not putting all your mutation code in just one file and put it on a separate file and extend to the mutation file. is that possible?
Can I use graphql-ws for queries and mutations?
how can I use streaming feature in queries. if my query is going to take lot of time, i want to stream data, rather than waiting for complete data to return.
This doesnt compile on 13.0.5 and the documentation seems wroung, atleast for the SubscribeAsync. Mine complains atleast?