Create a GraphQL Client in Java with Spring Boot

preview_player
Показать описание
If you're working on a Spring application and you need to call another REST API, you have tools such as RestTemplate or WebClient. But what if you need to call a GraphQL API? With Spring, a GraphQL Client is available. In this tutorial, you will learn how to include it in your project and use it by building a practical example.

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

Hello Dan,

To be honest, your YouTube channel is one of the best for Spring developers looking to learn about new developments in the framework. I really want to thank you for the content you provide, especially on Spring AI and GraphQL. I thoroughly enjoy watching your videos.

I was wondering if you have any plans to cover topics like RSocket, Spring Reactive, and monitoring in Spring 3.
Thanks

mohamadanbari
Автор

The best explanation I've found. Thanks!

ferbernardino
Автор

Simple. To the point and precise. Highly appreciate your work.

debashishbhattacharjee
Автор

Would be great to create a video with mutations where objects are created/updated/deleted and also maybe how to send/receive headers and do AuthN/Z

AleksandarT
Автор

Another great video. I love how active you've been lately. Keep it up. 👏

kmekky
Автор

Very quick, informative, and straightforward explanation. Thanks a lot!

SerhiiPylypenko-ow
Автор

Brought it to the point! Thank you for the tutorial!

xyvadimxy
Автор

Why is it a Mono for something that is many things? ie. List<Country>

rydmerlin
Автор

It would be more beneficial to demonstrate how microservices would talk to each other with GraphQL with different types of data structures.

.googolplex.percent
Автор

Hi, Great video. Can we have one demonstrating on how we handle errors?

makamuevans
Автор

Nice Vid!, would be great if you could also show how we could use the graphql client with authentication :D

shadowslayerhero
Автор

Great stuff... How do we retrieve the headers as part of the response body??

ajisegirisunday
Автор

thanks for this video. can you show us how to mutate using graphql client. i tried on my own, the mutate works but i can't figure out a way to
get the response as a Java Model Class. i was able to use Map to get key value pairs to extract the inserted element id and query the database
again to get the record from the database.
thanks in advance

raedgeorge
Автор

can you add the info how we can get the autocompletion in the `string document` graphql string

Muescha
Автор

This is more helpful, Could you please findbyId call with WebClient

sunilkumarkalagata
Автор

Can you please share video for implementing custom directives in graphql using spring boot

muralikrishna
Автор

Can you show a video of using graphqlclient with variables?

jeres
Автор

awesome! do you know how to make an unit test of this? I mean for the service class

AngelicaV
Автор

Why GraphQL client is not mapping Java records/pojo classes automatically in GraphQL query string?

bogdanjovanovic
Автор

hi can you share an example with resttemplate please if possible. I know its going to be deprecated but will help dev team with older version

dominicvinod