Writing Queryable API's with GraphQL
summary
Converts an existing REST movie API into a GraphQL API using Quarkus dev mode and MicroProfile GraphQL, replacing two endpoints with a single schema and supporting both a dynamic and typesafe client. Implements source fields for nested fetching (returns the top three actors — Tom Cruise, Val Kilmer, Miles Teller), map support as key/value lists, mutations that update ratings (example rating moves from 9.4 to 8.3 and later 7.7), subscriptions over websockets via Mutiny Multi, non‑blocking Uni responses, and Keycloak OpenID Connect security.
AI-written summary · about
chapters (16)
- 0:00Start
- 1:41Convert It to Graphql
- 2:11Overview
- 3:14The over Fetching and under Fetching Problem
- 5:01Rest Api
- 10:17Three Types of Graphql Operations Queries Mutations and Subscriptions
- 17:48Dynamic Graphql Client
- 20:11Typesafe Client Class
- 27:55Nested Parameter Annotations
- 29:08Support for Maps
- 32:14Mutations
- 36:17Subscription
- 44:20Security
- 44:54Add a Security Provider
- 50:21Is There a Tool That Helps You Fetch Data from the Database More Efficiently
- 51:10Roadmap
related talks
44mWriting queryable APIs with MicroProfile GraphQL
18mGraphQL Will Do To REST What JSON Did To XML
46mFrom REST to GraphQL: A 20-Minute Adventure
54mTake Control Of Your APIs With GraphQL
37mGraphQL — A New Look at the API
47mMoving beyond REST: GraphQL and Java & Spring
50mBuilding GraphQL APIs with Java
50mWriting better APIs with MicroProfile GraphQL
