Real-time Data fetching with GraphQL and Blazor

34:34
 
Share
 

Manage episode 276481450 series 2346669
By On .NET - Channel 9. Discovered by Player FM and our community — copyright is owned by the publisher, not Player FM, and audio is streamed directly from their servers. Hit the Subscribe button to track updates in Player FM, or paste the feed URL into other podcast apps.

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 .

  • [02:02] - What is real-time data fetching?
  • [04:30] - What are subscriptions used for?
  • [05:48] - Setting up a GraphQL client in Blazor (Demo)
  • [10:55] - Updating the GraphQL schema with fragments
  • [16:38] - Updating the Razor components
  • [24:48] - Using GraphQL variables
  • [28:18] - Adding subscriptions

Useful Links

201 episodes