Creating a GraphQL API with ASP.NET Core
summary
Walks through building a GraphQL server on ASP.NET Core using HotChocolate and a Blazor client via Strawberry Shake, showing working code in the GitHub demo. Uses EF Core IQueryable with a pooled DbContextFactory, supports filtering, sorting, pagination, and mutations that persist to the database. Demonstrates WebSocket subscriptions for real‑time updates (topic and parametric subscriptions) and a gateway using schema stitching across microservices, plus a batch data loader to fix N+1. All demos run live from the solution.
AI-written summary · about
chapters (15)
- 0:00Introduction and setup
- 3:22Why GraphQL over REST
- 8:19GraphQL fundamentals and specs
- 11:09Setting up Hot Chocolate server
- 16:27Querying with Hot Chocolate
- 21:43Client-side GraphQL with Strawberry Shake
- 27:43Pagination and filtering in Blazor
- 30:10Mutations in GraphQL
- 34:24Subscriptions for real-time updates
- 41:52Parametric subscriptions
- 47:31Subscriptions in Blazor client
- 53:34GraphQL and microservices
- 58:46Schema stitching and N+1 problem
- 1:00:11Batch data loader solution
- 1:04:09Recap and Q&A
related talks
01h 05mBuilding modern applications with GraphQL 2023 and beyond in ASP.NET Core 7
01h 10mHotChocolate: An Introduction to GraphQL for ASP.NET Core
01h 04mHot Chocolate: An introduction to GraphQL on ASP.Net Core
57mBuilding modern applications with GraphQL 2021 and beyond in ASP.NET Core 6
50mBuilding real-time applications with Blazor and GraphQL
01h 01mBuilding real-time applications with Blazor and GraphQL
58mHot Chocolate: An introduction to GraphQL on ASP.Net Core
01h 02mServerless GraphQL in .NET with Azure Functions and Hot Chocolate
