Observing Spring for GraphQL in Action
summary
Spring for GraphQL 1.1 upgrades to Java 17 and Spring Framework 6 and 1.2 adds annotated exception handlers and schema-inspection tooling; the sample app (github graphql-music) runs on WebFlux, MongoDB and Zipkin via Docker Compose and demonstrates built-in Micrometer observability with Micrometer Context Propagation. Traces show HTTP β GraphQL execution β per-field data fetch spans; a deliberately slow lyrics fetch exposes an N+1 problem that is solved using batch mapping / data loader, producing a single batched call and much lower latency.
AI-written summary Β· about
chapters (17)
- 0:00Spring for GraphQL intro
- 2:01GraphQL basics in Spring
- 8:07Architecture overview
- 10:15Spring for GraphQL 1.1 & 1.2
- 17:04Controller methods in 1.2
- 18:31Demo setup overview
- 22:22GraphQL schema & queries
- 23:47Schema inspection issues
- 27:17Playlist query mapping
- 30:07Observability & tracing
- 33:38Pagination with Window
- 35:04Fixing unmapped fields
- 39:16Cursor pagination demo
- 41:04N+1 problem demo
- 43:35Solving N+1 with batch
- 46:50Future plans
- 48:15Closing remarks








