A demo project showcasing a federated GraphQL architecture for API Days Paris 2025.
- locations: Manages venue and room information.
- speakers: Manages speaker profiles.
- sessions: Manages conference sessions and schedule.
- ratings: Manages session ratings and aggregation.
-
Install dependencies:
pnpm install
-
Start the subgraphs:
pnpm subgraph:start
This will start the subgraphs on the following ports:
- Locations: http://localhost:5001
- Speakers: http://localhost:5002
- Sessions: http://localhost:5003
- Ratings: http://localhost:5004
-
Create a Graph API Token and configure your environment:
npx wgc router token create apidays -n default -g apidays
Copy the token and add it to your
.envfile (see.env.example):GRAPH_API_TOKEN=<your-token-here>
-
Publish the subgraphs to Cosmo:
pnpm subgraph:publish:all
This demo supports multiple router modes. Please refer to the specific documentation for your use case:
- Connect: See README.CONNECT.md for running with Connect.
- MCP: See README.MCP.md for running with Model Context Protocol.
See package.json for a full list of available scripts.