Apollo Gateway acts as a unified GraphQL API gateway for the Flow OverStack platform, combining schemas from multiple microservices into a single federated schema. It routes and orchestrates queries and mutations across the underlying GraphQL services, enabling clients to interact with a consolidated API endpoint.
- Apollo Federation — for schema federation and query delegation
- Node.js & TypeScript — core runtime and language
- GraphQL — unified schema and API layer
- Node.js
- Docker (optional for containerized deployment)
- Running underlying GraphQL microservices
-
Clone the repo
-
Configure service URLs for the federated services in
supergraph.yaml
-
Update
supergraph.graphql
:rover supergraph compose --config supergraph.yaml > supergraph.graphql
-
Run the gateway:
npm install --save-dev typescript ts-node @types/node npm start
Access the GraphQL endpoint at http://localhost:5000/graphql