Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehdi-reza/graphql
GraphQL quick starter using quarkus and vertx-web-graphql
https://github.com/mehdi-reza/graphql
graalvm graphql quarkus vertx
Last synced: 16 days ago
JSON representation
GraphQL quick starter using quarkus and vertx-web-graphql
- Host: GitHub
- URL: https://github.com/mehdi-reza/graphql
- Owner: mehdi-reza
- Created: 2019-12-13T12:31:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T08:43:57.000Z (about 5 years ago)
- Last Synced: 2024-11-21T15:43:26.856Z (3 months ago)
- Topics: graalvm, graphql, quarkus, vertx
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= graphql =
== Main components ==
==== GraphQLProducer.java ====
This sets up graphql by parsing the schema and binding wirings for data fetchers.==== Routes.java ====
This enables graphql route to run queries (GET and POST). It also enables GraphiQL, hit your browser at http://localhost:8080/graphiql/
==== Fetchers ====
Two fetchers Profile and Wallet fetchers are defined in example.graphql.fetchers which are used in runtime wirings.
===== Launch =====
----
mvn clean package quarkus:dev
----===== Run a query =====
----
curl -d'{profile{id name wallets{id name}}}' -H'Content-Type: application/graphql' -H'Accept: application/json' http://localhost:8080/graphql
--------
{"data":{"profile":{"id":"1","name":"Mehdi Raza","wallets":[{"id":"1","name":"JAZZ"},{"id":"1","name":"EasyPaisa"}]}}}
----