Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rstoyanchev/spring-graphql-activity
Spring for GraphQL 1.3 Demo
https://github.com/rstoyanchev/spring-graphql-activity
Last synced: 7 days ago
JSON representation
Spring for GraphQL 1.3 Demo
- Host: GitHub
- URL: https://github.com/rstoyanchev/spring-graphql-activity
- Owner: rstoyanchev
- License: apache-2.0
- Created: 2024-05-09T11:13:06.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-31T11:54:45.000Z (6 months ago)
- Last Synced: 2024-05-31T13:07:53.949Z (6 months ago)
- Language: Java
- Size: 696 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
Spring for GraphQL 1.3 app to demo the following:
- Controller methods on virtual threads via `spring.threads.virtual.enabled` property.
- Synchronous client access in [ClientApp](src/main/java/com/example/activity/ClientApp.java).
- Use of DGS generated client API in [ClientDgsApp](src/main/java/com/example/activity/ClientDgsApp.java).
- Mapping to interface field `Activity.comments`.
- Schema inspection of unions and interfaces.# Running
Run [ServerApp](src/main/java/com/example/activity/ServerApp.java) from your IDE, or
`./gradlew bootRun` from the command line to start the server.Then use any of the following:
- Run [ClientApp](src/main/java/com/example/activity/ClientApp.java), or `./gradlew clientRun` from the command line.
- Run [ClientDgsApp](src/main/java/com/example/activity/ClientDgsApp.java), or `./gradlew clientDgsRun`.
- Run slice tests [AthleteControllerTests](src/test/java/com/example/activity/AthleteControllerTests.java) or [SearchControllerTests](src/test/java/com/example/activity/SearchControllerTests.java).
- Open GraphiQL in a browser at http://localhost:8080/graphiql.