This is a project will demonstrate the basics of building a GraphQL API using Spring for GraphQL. This project is built on Spring Boot 3.2 and Java 21.
- This application is built around the domain model of a
Coffee
type. - There is a
CoffeeService
responsible for creating an in-memory collection of coffees and the CRUD operations to support it. - The
CoffeeController
is responsible for mapping methods to the GraphQL Schema. - The GraphQL Schema is located at
/src/main/resources/graphql/schema.graphqls
. - The GraphiQL UI has been enabled in
application.yaml
./mvnw spring-boot:run