/multiple-graphql-endpoints

Simple voting app utilising multiple GraphQL endpoints

Primary LanguageJavaScriptMIT LicenseMIT

Multiple graphql endpoints

Simple voting app showcasing GraphQL queries, mutations and subscriptions on multiple GraphQL endpoints.

alt text

Directories

  • 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

Installation

git clone https://github.com/plexey/multiple-graphql-endpoints.git
cd multiple-graphql-endpoints
yarn

Run

From the project root:

api

yarn start-api

main-server

yarn start-main-server

sub-server

yarn start-sub-server

client

yarn start-client