~/talk

Creating a GraphQL API with ASP.NET Core

Talkat DotNext 2021 Moscow · 2021-10-21..10-22· [graphql, dotnet]
links:none on file
slides:none on file

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

  1. 0:00Introduction and setup
  2. 3:22Why GraphQL over REST
  3. 8:19GraphQL fundamentals and specs
  4. 11:09Setting up Hot Chocolate server
  5. 16:27Querying with Hot Chocolate
  6. 21:43Client-side GraphQL with Strawberry Shake
  7. 27:43Pagination and filtering in Blazor
  8. 30:10Mutations in GraphQL
  9. 34:24Subscriptions for real-time updates
  10. 41:52Parametric subscriptions
  11. 47:31Subscriptions in Blazor client
  12. 53:34GraphQL and microservices
  13. 58:46Schema stitching and N+1 problem
  14. 1:00:11Batch data loader solution
  15. 1:04:09Recap and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.