Welcome to the starter code for Intro to GraphQL with Java & DGS. You can find the course lessons and instructions on Odyssey, Apollo's learning platform.
The course will walk you step by step on what to do. This codebase is the starting point of your journey!
This project uses Java and requires JDK 17. To start the project, open a new terminal and run:
./gradlew bootRun
Or navigate to the SoundtracksApplication.java
file and click Run
in your IDE.
The final
branch of this repo contains the final stage of the course, with all of the steps and code completed! If you get stuck, you can refer to it and compare your code.
This repo is not regularly monitored.
For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums. You can also join the Apollo Discord.
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
These additional references should also help you:
This project has been configured to use the Netflix DGS Codegen plugin.
This plugin can be used to generate client files for accessing remote GraphQL services.
The default setup assumes that the GraphQL schema file for the remote service is added to the src/main/resources/schema/
location.
You can learn more about the plugin configuration options and how to use the generated types to adapt the default setup.