GraphQL supports the ability to subscribe to event streams to enable somewhat real-time scenarios for both clients and servers.
In this episode of the On .NET show, HotChocolate author Michael Staib returns to show us how to enable real-time data fetching with GraphQL using subscriptions .
[T02:02] - What is real-time data fetching?
[T04:30] - What are subscriptions used for?
[T05:48] - Setting up a GraphQL client in Blazor (Demo)
[T10:55] - Updating the GraphQL schema with fragments
[T16:38] - Updating the Razor components
[T24:48] - Using GraphQL variables
[T28:18] - Adding subscriptions
HotChocolate in GitHub
https://github.com/ChilliCream/hotchocolate
Subscriptions in GraphQL spec
http://spec.graphql.org/June2018/#sec-Subscription
Introductions to ASP.NET core
https://docs.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-3.1
#Blazor #AspNETCore #GraphQL #WebAPI
6 Comments