Does Your API Need a REST? Check Out GraphQL

Does Your API Need a REST? Check Out GraphQL

GraphQL is a declarative query language that simplifies retrieving data from an application's back end. It provides a clear and comprehensive description of the data in your API, giving you the ability to request only what you need. This makes it easy to evolve APIs over time and enables powerful developer tools.

In this talk, Spring expert Dan Vega covers the basics of GraphQL and how it differs from traditional RESTful API architectures. You will learn how to construct API requests using the query language on the client side. On the server side, you will learn how to create a schema and data fetchers (controller methods) to power them. Dan also discusses best practices for building GraphQL APIs with Spring Boot, including batch loading, pagination, and error handling.

By the end of this talk, you will have everything you need to build your first GraphQL API in Spring.

This talk was originally presented as part of SpringOne Tour: https://springonetour.io/