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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Setting up the project4m 18s
-
(Locked)
Creating the schema4m 5s
-
(Locked)
Creating a Spring Data repository5m 41s
-
(Locked)
Creating the GraphQL controller6m 44s
-
(Locked)
Mutations5m 32s
-
(Locked)
Errors4m 8s
-
(Locked)
Challenge: Extending the API1m 19s
-
(Locked)
Solution: Extending the API4m 4s
-
(Locked)
-