Flexible APIs with Spring GraphQL

A Video Tutorial on Creating a GraphQL API

Craig Walls
The Pragmatic Programmers
2 min readJun 8, 2022

--

https://pragprog.com/newsletter/

Just last month, Spring Boot 2.7.0 was released and with it came Spring GraphQL 1.0.0. Spring GraphQL offers an intriguing new way to create APIs with Spring that are more flexible, require less coding in many cases, and allow the client to have a say in what data they receive.

In this tutorial video, I show how to create a GraphQL API with Spring GraphQL, including custom queries, queries backed by Spring Data repositories, and mutations. I also cover how to add and use GraphiQL in your project as a browser-based tool for interacting with your GraphQL API, as well as how to use Spring’s GraphQL client to consume APIs programmatically.

🔊 Check it out and let me know what you think! You can leave comments and questions by clicking the Comments icon.

If you enjoyed this post with video tutorial, you might also enjoy Build Talking Apps for Alexa by Craig Walls, now available in beta from The Pragmatic Bookshelf:

You can save 35 percent on the ebook now through July 15 with promo code alexa_2022. Promo codes are not valid on prior purchases.

--

--