Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.58 KB

README.md

File metadata and controls

42 lines (35 loc) · 1.58 KB

Graphql Gateway

Artifact HUB

The graphql gateway service is a graphql gateway to multiple backend graphql providers. It is implemented with the graphql federation specification.

Please also look at this graphql federation demo:

Run With Docker

docker run --rm -p 8181:80 -e GRAPHQL_URL_0=http://first-graphql-service/graphql GRAPHQL_URL_1=http://second-graphql-service/graphql hansehe/graphql-gateway

Access graphql playground api at:

Use Helm Repo

helm repo add graphql-gateway https://raw.githubusercontent.com/hansehe/graphql-gateway/master/helm/charts
helm repo update
helm install graphql-gateway \
--set environmentVariables.GRAPHQL_URL_0=http://service_1/graphql \
--set environmentVariables.GRAPHQL_URL_1=http://service_2/graphql \
graphql-gateway/graphql-gateway

Development

# Prerequisites: docker/docker-compose/node/python
# https://pypi.org/project/DockerBuildManagement/
pip install --upgrade DockerBuildManagement
dbm -swarm -start
dbm -build -test -run service
# Access graphql gateway (federated schemas of backend 0 and 1) api at: http://localhost:8181/graphql/
# Access graphql backend 0 api at: http://localhost:5001/graphql/
# Access graphql backend 1 api at: http://localhost:5002/graphql/
dbm -swarm -stop