Simple voting app showcasing GraphQL queries, mutations and subscriptions on multiple GraphQL endpoints.
- api - express server acting as database containing animal voting data
- main-server - GraphQL endpoint handling queries
- sub-server - GraphQL endpoint handling mutations and subscriptions
- client - Apollo/React app that executes queries on the main-server as well as mutations & subscriptions on the sub-server
git clone https://github.com/plexey/multiple-graphql-endpoints.git
cd multiple-graphql-endpoints
yarn
From the project root:
yarn start-api
yarn start-main-server
yarn start-sub-server
yarn start-client