The Spring GraphQL server example extended to run off a Postgres database via Spring JDBC.
To run the Spring api and Postgres database via Docker:
direnv allow
make build
make docker-build-gradle
docker compose up -d
Open http://localhost:4000/graphiql?path=/graphql
You can also directly run the Spring api at the same time with:
make run
Open http://localhost:8080/graphiql?path=/graphql
make docker-bash-db
postgres@...$ psql test
test=# \d