This example uses:
- create-react-app for simple React config
- apollo-boost for simple apollo setup
- apollo/client.js
- configuration of apollo client
- App.js
- root component that has
ApolloProvider
with client
- root component that has
- Cart.js
- simple component that queries number of orders and displays them as a number
- OrderList.js
- component that queries all orders and displays them as lists
- OrderList.js
- component that queries all orders and displays them as lists
- MarkDeliveredButton.js
- component that uses mutation to save new orders, uses optimistic response
- SubmitOrderButton.js
- component that uses mutation to save new orders, uses manual cache update and optimistic response