From the course: Learning Quarkus

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

GraphQL with Quarkus

GraphQL with Quarkus

From the course: Learning Quarkus

Start my 1-month free trial

GraphQL with Quarkus

- [Instructor] GraphQL is a very popular way of exposing data to a UI in modern web applications. Now, a lot of times we write GraphQL services using JavaScript, but if you want to do it in Java, Quarkus has built-in support for building a GraphQL-based service. So, let's take a look at how. All right, we're going to create one last time, for this course, a new module. I'll use my ID plugin. (keys clacking) We're going to call this one room-service-graphQL. Go ahead and select Next. So, now, in web, so a couple options for GraphQL. And the one that we are going to choose, is the SmallRye GraphQL end point. We also need to go ahead and do our database once again and I'm going to use the DataStax Apache Cassandra client. And we'll go ahead and generate that up. All right, let's do some copy, paste again. So source main Java, I want to bring over the room and the roomService. And I'm also going to get rid of the example…

Contents