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

In this tutorial I show you how to use GraphQL with Spring Boot.
Links
🔗 Source code: github.com/devtiro/spring-boo...
🔗 Spring Boot GraphQL Docs: docs.spring.io/spring-boot/do...
🔗 GraphQL Website: graphql.org/
Connect With Devtiro
🌐 Website: www.devtiro.com
🐥 Twitter: / devtiro
📸 Instagram: / 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

Пікірлер: 7

  • @mrpunch_777_
    @mrpunch_777_10 ай бұрын

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

  • @JordanKimsey
    @JordanKimsey Жыл бұрын

    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.

  • @___vandanagupta___
    @___vandanagupta___ Жыл бұрын

    Awesome content!

  • @Porschepatrolman
    @Porschepatrolman Жыл бұрын

    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

  • @farjallahhaythem5675
    @farjallahhaythem5675 Жыл бұрын

    great content

  • @VLADICA94KG
    @VLADICA94KG5 ай бұрын

    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.

  • @rydmerlin
    @rydmerlin Жыл бұрын

    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?