Building GraphQL client for Spring Boot Java project

Tomas Matusek
1 min readSep 23, 2021

There is lot of tutorials written about how to implement GraphQL service for backend using different languages and technologies but not so much about how to build actual request from a client in Java.

At the time of this article there was an Appolo GraphQL Client project that was in a Beta phase and targeted mainly for Android (which mean we should be able to use it also in standard Java project but it is still a pre-release version which is not acceptable for production project).

After some research I found that there is a whole Netflix project called DGS GraphQL for Spring Boot about which I didn’t know anything. This library contains everything required to build GraphQL service around Spring boot and also it contains a very easy to use GraphQL Client in Advanced section.

I am posting it here because it took me some time to find it out. As I was using a https://www.graphql-java.com/ implementation instead of a DSG framework.

At the end I mention a very good video series on YouTube around building a GprahQL backend for Spring Boot on this youtube channel.

--

--