Starting point for the Apollo GraphQL Server and React Client. The server is rather basic but the client demonstrates various options using the ApolloClient including state management.
git clone https://github.com/jmarkstevens/jms-react-apollo
cd jms-react-apollo
You will need 2 terminal windows for the rest
cd server
npm install
npm start
Then open http://localhost:4000/graphiql for server testing of graphql
cd client
npm install
npm start
Note: without the subscription in WithApollo changes in WithLink are not reflected in the other components. This is because WithLink is not connected to the same cache. Changes in WithGraphql, WithQuery and WithStaticClient are also not automatically updated to WithApollo without the subscription.
WithStaticClient demonstrates a pattern for using the ApolloClient cache apart from a react component.