GraphQL + Apollo + Vue js = Magic
summary
Shows how to wire GraphQL into Vue using Vue Apollo and Apollo Boost, with the exact npm/yarn install commands and the import/creation of an Apollo provider and default client. Demonstrates GQL template queries, variableized searches, mutations and the onUpdate cache handler that uses cache.readQuery/writeQuery to append results so the UI updates immediately. Shows using the Apollo cache as local state, links to awesometalks.party data and a working CodeSandbox demo.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:17I REALLY LOVE GRAPHQL
- 0:30GRAPHQL IS BAE
- 0:56MY NAME IS SARA
- 2:03I ADORE VUE
- 2:28I FEEL LIKE VUE IS LIKE THE HARRY POTTER OF JS LIBRARIES
- 3:52HOW?
- 6:06DONE
- 6:16LET'S QUERY SOME THINGS!
- 9:08QUERY COMPONENT
- 11:37VARIABLES ?
- 13:16MUTATIONS?
- 13:39MUTATION COMPONENT!!
- 15:55THE UPDATE FUNCTION
- 19:23DEMO WITH LOCAL STATE








