https://github.com/mirumee/gql-federation-gateway
Simple gateway for Apollo Federation with JWT
https://github.com/mirumee/gql-federation-gateway
apollo-federation apollo-server docker-image gateway graphql jwt
Last synced: 3 months ago
JSON representation
Simple gateway for Apollo Federation with JWT
- Host: GitHub
- URL: https://github.com/mirumee/gql-federation-gateway
- Owner: mirumee
- License: bsd-3-clause
- Created: 2019-10-21T13:31:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T10:14:48.000Z (almost 3 years ago)
- Last Synced: 2025-06-24T00:11:49.046Z (4 months ago)
- Topics: apollo-federation, apollo-server, docker-image, gateway, graphql, jwt
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 18
- Watchers: 5
- Forks: 6
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graphql Federation Gateway
This is a simple gateway that exposes uniform GraphQL API for multiple services using Apollo Federation. Runs on Apollo Server.
## Configuration
### Services
The only one settings that service really needs is a list of GraphQL endpoints in the federation along with their identifying aliases:```bash
export ENDPOINTS="first:http://host:8000/graphql/ second:http://host2:8000/graphql/"
```Endpoints must be separated by spaces and a name is finished by the first colon.
### Polling
Gateway will poll services to update schema on regular intervals. Default interval is 6 seconds, you can change it with _POLLING_INTERVAL_ environment variablem which is in miliseconds.
```bash
export POLLING_INTERVAL=10000
```This whill set polling interval to 10 seconds.