~/talk

Consuming GraphQL using C#

Talkat NDC Oslo 2022 · 2022-09-26..09-30· [graphql]
slides:none on file

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

  1. 0:00GraphQL in C# intro
  2. 1:46What is GraphQL
  3. 7:28GraphQL vs REST
  4. 10:59GraphQL query basics
  5. 17:41Request structure and JSON
  6. 21:39HTTP client requests
  7. 22:00GraphQL .NET SDKs
  8. 24:46Hot Chocolate server
  9. 31:26Client-side GraphQL
  10. 34:57Strawberry Shake in .NET Maui
  11. 37:29Executing queries in C#
  12. 40:20Dynamic queries
  13. 45:17Why Strawberry Shake
  14. 45:58Strawberry Shake setup
  15. 49:30Resources and closing
~/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.