~/talk

Consume GraphQL API with Apollo Client and React

Talkat React Alicante 2022 · 2022-09-29..10-01· [graphql, react]
slides:none on file

Claims that GraphQL avoids over‑ and under‑fetching with a concrete timing: SWAPI GraphQL returns a character list in 602 ms vs 4 s for the REST calls shown. Builds a Next app against the Northwind GraphQL endpoint using ApolloProvider with InMemoryCache and the npm packages apollo-client and graphql. Implements list and single‑item queries with variables and runs create/update/delete via useQuery and useMutation, with mutations updating Apollo cache and UI in the demo.

AI-written summary · about

  1. 0:00Introduction
  2. 0:52Talk agenda and GraphQL basics
  3. 3:40GraphQL myths and Apollo Client
  4. 5:27Setting up Apollo Client
  5. 8:16First GraphQL query
  6. 12:30Fetching data with useQuery
  7. 14:17Querying with variables
  8. 18:53Displaying product details
  9. 19:13Mutating data
  10. 22:24Adding products
  11. 23:50Updating and deleting products
  12. 26:41Q&A
~/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.