GraphQL :heart: Haskell
summary
Concrete demo of a type‑safe GraphQL server built on the Mu microservices framework: it parses a .graphql schema with template Haskell to produce compile‑time types, requires an explicit object mapping for resolver inputs, and runs resolvers in a ServerErrorIO monad so field resolution can do database IO. Supports streaming via conduits, Prometheus metrics and tracing, and multi‑protocol schemas (gRPC, Avro, OpenAPI) so one schema becomes a single source of truth. Goal: add join‑monster–style SQL generation; current system works and typechecks at compile time.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:51What is GraphQL
- 7:14GraphQL schemas and types
- 11:54Introducing Mu library
- 17:31Executing GraphQL queries
- 22:04Resolvers and intermediate types
- 31:17Building a GraphQL server
- 33:46Database query optimization
- 35:52Streaming and real-time data
- 37:37Instrumentation and deployment
- 39:22Type-level programming in Haskell
- 44:24Resources and conclusion
