Reactive GraphQL with Spring
This repository demonstrates Spring GraphQL + RSocket + WebFlux + R2DBC + H2
O__ +-----------+ +--------+
/| <~- REST GraphQL -~> | customers | <~- TCP RSocket -~> | orders |
/ \ +-----------+ +--------+
Start apps:
./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:
query {
customers {
id
name
orders {
id
customerId
}
}
}
Tear down:
./mvnw -f orders spring-boot:stop
./mvnw -f customers spring-boot:stop
rtfm
For further reference, please consider the following sections: