From the course: Spring with GraphQL

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Challenge: Extending the API

Challenge: Extending the API - Spring Tutorial

From the course: Spring with GraphQL

Challenge: Extending the API

(upbeat music) - [Instructor] So now it's time for you to take what you've learned and extend the API. If you look at the schema.sql file and the data.sql file, I provided you several tables, and in those tables, there is data for each and every one of them. I'm going to encourage you to implement as many of them as you want. And in my solution, I'm going to go forward and do that. So let's talk about how I want you to do this additional query. You've got several options, do one of them, or do all of them, leverage JPA joints where possible. If you do that, GraphQL will wire those elements properly and you will get the data back with less traversing the database itself. Utilize the schema.sql file to guide you. You can also create your own SQL file for these additions. Just remember, there can only be one root. And I encourage you to take this as far as you can. If you want to add mutations, add mutations. If you…

Contents