These are the code examples to the free video course GraphQL Data in React with Apollo Client
In order to run the client you need to seed the DB and run the server beforehand.
make setup run.server
- Setup and Connect an Apollo Client to a React Application with Apollo Provider
make run.server run.lesson1
- Fetch Data using the Apollo Query Component
make run.server run.lesson2
- Provide Dynamic Arguments in a Apollo Query Component with GraphQL Variables
make run.server run.lesson3
- Update Data using the Apollo Mutation component
make run.server run.lesson4
- Manage Local State using Apollo by extending the GraphQL Schema on the Client
make run.server run.lesson5
You can find the server located here: https://github.com/nikgraf/graphql-apollo-client-course/tree/master/server
The db stores two JSON files stored in /tmp/recipes.json
and /tmp/ingedients.json
.