Get EXACTLY what you want from your APIs: How to use GraphQL with Spring Boot

preview_player
Показать описание
In this tutorial I show you how to use GraphQL with Spring Boot.

*Links*

*Connect With Devtiro*

*Timestamps*
0:00 Intro
0:08 Basic Theory
02:08 Dependencies
02:46 GraphQL Schema
3:47 Domain Objects
4:20 Persistence Layer
4:45 Service Layer
5:15 Presentation Layer
06:50 Flyway
08:03 Using the Application
10:18 Adding Pagination
14:13 Next Up
Рекомендации по теме
Комментарии
Автор

Great video! I'm glad to see another talented software developer sharing his knowledge!

mrpunch__
Автор

Great video! It was very informative and straight to the point. I have a project at work starting next week using GraphQL with spring boot, so your video came at the perfect time! Keep up the awesome content.

JordanKimsey
Автор

it also would be really important to mention how you would achieve to solve the over and underfetching problem
which means that you only query the data you select in the query like in your example just isbn and author and that the other columns are ignored in the resulting sql statement

Porschepatrolman
Автор

If you remove some fields from the graphQL query @9:12, do you still execute the full flown SQL select statement in the database? In case yes, you are effectively just saving a few bytes over Http, but the database query and the object saved in memory are still the same.
Would be nice if graphQL library would be capable of transforming a given graphQL query into a proper SQL statement.

VLADICAKG
Автор

As I’m watching this I’m asking myself is there anything that generates graphql schema from existing model definitions? Why are you using Iterable and not List as your return type ? Why can’t you rely on spring boot data.sql and schema.sql to get the db setup?

rydmerlin
Автор

i wish i can give you 1000 likes at a time

yahiaazil