Building GraphQL APIs in C#
summary
Claims that GraphQL cuts client-server round trips and lets clients shape responses get demonstrated with concrete tools and code: uses .NET 6 ASP.NET Core, adds Hot Chocolate via NuGet, calls AddGraphQLServer().AddQueryType() and MapGraphQL() to expose a one endpoint POST API whose body contains a JSON field named query. Demo builds Book and Author records, implements getBooks and getBook, and exercises them with GraphiQL/Banana Cake Pop and Postman; it returns exact JSON fields as requested (server briefly crashes once during the demo).
AI-written summary · about
chapters (22)
- 0:00Start
- 3:45What Is Graphql
- 8:17News Feed
- 8:43Notifications
- 11:09Graphql
- 11:22The Graphql Foundation
- 11:51Graphql Foundation
- 17:05Github's Graphql Api
- 17:29Graphical User Interface for Graphql
- 18:06Docs
- 19:04Root Types
- 20:03Building Out the Graphql Query
- 21:05Query for a User
- 22:39Syntax Error
- 25:59Postman
- 34:11How Would You Consolidate Different Teams Working on Different Parts of the Graph
- 36:44Add in Our Graphql Endpoint
- 40:56Graphql Endpoint
- 52:13Graphql Button
- 53:38Helpful Resources
- 54:35Does It Make Sense To Use Graphql for Your Database
- 55:36Are There a Way To Know Which Fields from the Database Are Actually Prepared from the Graph
related talks
50mConsuming GraphQL using C#
57mBuilding modern applications with GraphQL 2021 and beyond in ASP.NET Core 6
01h 05mBuilding modern applications with GraphQL 2023 and beyond in ASP.NET Core 7
01h 05mBuilding Distributed GraphQL APIs
01h 04mHot Chocolate: An introduction to GraphQL on ASP.Net Core
01h 05mCreating a GraphQL API with ASP.NET Core
58mHot Chocolate: An introduction to GraphQL on ASP.Net Core
58mBeyond REST with GraphQL in .Net core
