Writing queryable APIs with MicroProfile GraphQL
summary
Starts from a JAX-RS + Jackson REST app backed by JPA (people) and a flat-file score store, demonstrates painful over‑ and under‑fetching, then rewires it to MicroProfile GraphQL on Quarkus to return exactly requested fields. Shows batching reduces N calls by turning per-item lookups into list calls, uses completionStage async to run independent fields concurrently, maps custom scalars and formats, supports mutations, introspection and partial errors, secures endpoints with JWT via Keycloak, and notes a working demo with minor dev-reload and DB hiccups.
AI-written summary · about
chapters (19)
- 0:00Queryable APIs with GraphQL
- 4:33REST API problems
- 5:17GraphQL history and concepts
- 6:20Convert REST to GraphQL
- 8:48Solve over fetching
- 9:11Solve under fetching
- 10:21GraphQL batching
- 12:54Combine GraphQL endpoints
- 16:56Async execution
- 22:56GraphQL benefits recap
- 23:57Errors and partial responses
- 26:43Data mapping
- 31:01Mutations
- 34:35Schema introspection
- 35:17Secure GraphQL with JWT
- 37:27Request inspection with context
- 39:57Custom execution
- 41:23MicroProfile GraphQL integrations
- 42:25MicroProfile GraphQL future








