Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/spring-graphql-example
This repository demonstrates Spring GraphQL + RSocket + WebFlux + R2DBC + H2
https://github.com/daggerok/spring-graphql-example
graphql h2 h2-database r2dbc r2dbc-h2 spring-boot spring-graphql spring-mvc webflux
Last synced: about 1 month ago
JSON representation
This repository demonstrates Spring GraphQL + RSocket + WebFlux + R2DBC + H2
- Host: GitHub
- URL: https://github.com/daggerok/spring-graphql-example
- Owner: daggerok
- License: mit
- Created: 2021-11-20T00:50:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-20T01:03:11.000Z (about 3 years ago)
- Last Synced: 2023-04-05T03:19:12.360Z (over 1 year ago)
- Topics: graphql, h2, h2-database, r2dbc, r2dbc-h2, spring-boot, spring-graphql, spring-mvc, webflux
- Language: Kotlin
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reactive GraphQL with Spring [![CI](https://github.com/daggerok/spring-graphql-example/actions/workflows/ci.yaml/badge.svg)](https://github.com/daggerok/spring-graphql-example/actions/workflows/ci.yaml)
This repository demonstrates Spring GraphQL + RSocket + WebFlux + R2DBC + H2```
O__ +-----------+ +--------+
/| <~- REST GraphQL -~> | customers | <~- TCP RSocket -~> | orders |
/ \ +-----------+ +--------+
```Start apps:
```bash
./mvnw -f orders compile spring-boot:start
./mvnw -f customers compile spring-boot:start
```Open http://127.0.0.1:8080/graphiql in a browser
And execute GraphQL query:
```graphql
query {
customers {
id
name
orders {
id
customerId
}
}
}
```Tear down:
```bash
./mvnw -f orders spring-boot:stop
./mvnw -f customers spring-boot:stop
```## rtfm
For further reference, please consider the following sections:
* [Spring Boot GraphQL](https://docs.spring.io/spring-graphql/docs/1.0.0-M3/reference/html/#boot-graphql)
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.6.0/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.6.0/maven-plugin/reference/html/#build-image)
* [Coroutines section of the Spring Framework Documentation](https://docs.spring.io/spring/docs/5.3.13/spring-framework-reference/languages.html#coroutines)
* [Spring Data R2DBC](https://docs.spring.io/spring-boot/docs/2.6.0/reference/html/spring-boot-features.html#boot-features-r2dbc)
* [Acessing data with R2DBC](https://spring.io/guides/gs/accessing-data-r2dbc/)
* [R2DBC Homepage](https://r2dbc.io)