Does Your API Need a REST? Check Out GraphQL.
summary
GraphQL replaces multiple REST fetches with a single POST to /graphql so a product page that used three REST calls becomes one query, and Spring integrates it via graphql-java plus Spring for GraphQL (starter, auto‑config, metrics). Schema files live under src/main/resources as schema.graphqls, controllers use @QueryMapping/@MutationMapping/@SchemaMapping and @Argument, input types require input definitions, pagination follows the cursor connection spec (Spring for GraphQL 1.2, Spring Boot 3.1, JDK 17), and observability, security, and testing are built in.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 2:07Why GraphQL for APIs
- 15:43GraphQL Java and Spring for GraphQL
- 20:19Creating first GraphQL API
- 29:48GraphQL UI and schema exploration
- 31:36Observability in GraphQL
- 33:44Pagination in GraphQL
- 36:36Security in GraphQL APIs
- 38:23Testing GraphQL applications
- 39:04Conclusion and Q&A








