Consuming GraphQL using C#
summary
Shows how to consume GraphQL from C# by building a .NET MAUI client for a HotChocolate backend and querying a books API; GraphQL requests are plain POSTs with a single JSON field "query", and Strawberry Shake pulls the schema via .net graphql init then generates client code (the demo grows the generated code to ~1,200 lines, saving thousands of handwritten lines). Demonstrates HotChocolate server, Strawberry Shake client, variable queries like getBookByTitle, and that requests work end-to-end.
AI-written summary · about
chapters (15)
- 0:00GraphQL in C# intro
- 1:46What is GraphQL
- 7:28GraphQL vs REST
- 10:59GraphQL query basics
- 17:41Request structure and JSON
- 21:39HTTP client requests
- 22:00GraphQL .NET SDKs
- 24:46Hot Chocolate server
- 31:26Client-side GraphQL
- 34:57Strawberry Shake in .NET Maui
- 37:29Executing queries in C#
- 40:20Dynamic queries
- 45:17Why Strawberry Shake
- 45:58Strawberry Shake setup
- 49:30Resources and closing
related talks
59mBuilding GraphQL APIs in C#
01h 04mHot Chocolate: An introduction to GraphQL on ASP.Net Core
58mHot Chocolate: An introduction to GraphQL on ASP.Net Core
01h 10mHotChocolate: An Introduction to GraphQL for ASP.NET Core
58mHot Chocolate: GraphQL Schema Stitching with ASP
01h 01mBuilding real-time applications with Blazor and GraphQL
01h 05mBuilding modern applications with GraphQL 2023 and beyond in ASP.NET Core 7
01h 05mCreating a GraphQL API with ASP.NET Core
