GraphQL, Simplified
summary
Demo shows a tiny client and a runnable full‑stack example: the front end uses graphql-hooks (1.9kB gzipped) with useQuery/useMutation hooks in React to fetch and create users, the back end uses fastify-gql with an in‑memory users array and mutations exposed via the schema, queries are explored with graphiQL, fastify‑gql compiles queries to JS for speed, and the workshop code actually lists users, adds a user via a mutation and refreshes the list — it runs live though attendees hit minor install hiccups.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:24graphql-hooks Workshop
- 4:15React Hooks are...
- 6:41Store and manage local state Separation of concerns • Functions vs Classes
- 7:16GraphQL is a data query language
- 9:05Introducing graphql- hooks
- 11:58Get a GraphQL Server up and running Explore GraphiQL
- 26:22A GraphQL schema defines the relationships and structure of the data
- 27:31GraphQL resolvers are functions that define what to do with the data
- 27:51To Create a User, add a mutation to the schema and resolvers in graphql.js
- 37:10Install graphql-hooks npm install graphql-hooks
- 58:19Query Variables
related talks
30mGraphQL - A different way to API
41mIntroduction to GraphQL
01h 00mGraphQL - A query language to empower your API consumers
30mReact & GraphQL - Bringing Simplicity and Correctness to Client Side Development
08mCreating a flexible GraphQL backend in 5 minutes
38mVue + GraphQL
26mEverything You Need to Know About GraphQL in 3 Components
58mCrafting compelling real-time web experiences with GraphQL and React
