https://github.com/aesteve/vertx-graphql-java
Simple example on building a graphql-compliant server with Vert.x and graphql-java (async)
https://github.com/aesteve/vertx-graphql-java
async graphql vertx vertx-web
Last synced: 12 months ago
JSON representation
Simple example on building a graphql-compliant server with Vert.x and graphql-java (async)
- Host: GitHub
- URL: https://github.com/aesteve/vertx-graphql-java
- Owner: aesteve
- Created: 2019-01-27T11:30:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T11:30:51.000Z (about 7 years ago)
- Last Synced: 2025-02-10T09:31:19.841Z (about 1 year ago)
- Topics: async, graphql, vertx, vertx-web
- Language: Java
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vertx + GraphQL-java
A very basic example and a set of utility methods allowing to build a graphql-compliant http server with Vert.x.
The main point is that graphql-java already provides a way to deal with asynchronous responses.
Just a tiny set of utility methods is needed to convert from `Future` to `CompletableFuture`.
On top of that comes a very basic http server, handling GraphQL queries either through POST or GET.
It's a basic example, not a library, since the code could be adapted if you're using RxJava Singles, koroutines, etc.