~/talk

GraphQL, Simplified

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [graphql]
slides:none on file

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

  1. 0:00Intro
  2. 0:24graphql-hooks Workshop
  3. 4:15React Hooks are...
  4. 6:41Store and manage local state Separation of concerns • Functions vs Classes
  5. 7:16GraphQL is a data query language
  6. 9:05Introducing graphql- hooks
  7. 11:58Get a GraphQL Server up and running Explore GraphiQL
  8. 26:22A GraphQL schema defines the relationships and structure of the data
  9. 27:31GraphQL resolvers are functions that define what to do with the data
  10. 27:51To Create a User, add a mutation to the schema and resolvers in graphql.js
  11. 37:10Install graphql-hooks npm install graphql-hooks
  12. 58:19Query Variables
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.