Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
You don’t need a fancy framework to use GraphQL...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Samer Buna
March 14, 2017
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
You don’t need a fancy framework to use GraphQL with React
Samer Buna
March 14, 2017
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
WENDY [Excerpt]
tessaabrams
14
40k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Site-Speed That Sticks
csswizardry
13
1.6k
Speed Design
sergeychernyshev
33
2.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Ethics towards AI in product and experience design
skipperchong
2
430
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
Code Reviewing Like a Champion
maltzj
529
40k
Transcript
! SAMER BUNA Author · EdgeCoders.com samerbuna You Don’t Need
a Fancy Framework to Use GraphQL with React
None
/people/4 /planets/1 /films/1 /films/2 /films/3 /films/6 person(ID: 4) { name,
planet { name }, films { title } } bit.ly/rest-vs-graphql
{ "name": "Darth Vader", "height": "202", "mass": "136", "hair_color": "none",
"skin_color": "white", "eye_color": "yellow", "birth_year": "41.9BBY", "gender": "male", "homeworld": "http://swapi.co/api/planets/1/", "films": [ "http://swapi.co/api/films/6/", "http://swapi.co/api/films/3/", "http://swapi.co/api/films/2/", "http://swapi.co/api/films/1/" ], "species": [ "http://swapi.co/api/species/1/" ], "vehicles": [], "starships": [ "http://swapi.co/api/starships/13/" ], "created": "2014-12-10T15:18:20.704000Z", "edited": "2014-12-20T21:17:50.313000Z", "url": "http://swapi.co/api/people/4/" } { "name": "Darth Vader", "planet": { "name": "Tatooine" }, "films": [ { "title": "A New Hope" }, { "title": "The Empire Strikes Back" }, { "title": "Return of the Jedi" }, { "title": "Revenge of the Sith" } ] } bit.ly/rest-vs-graphql
None
GraphQL is LEGEN — wait for it — DARY! bit.ly/why-graphql
REST is L — wait for it — D E
— wait for it — A G — wait for it — R E — wait for it — Y N — wait for it — ! bit.ly/why-graphql
HOW GraphQL with React
• Performance • Batching • Pagination • Efficiency • New
data only • Visible window data only Frameworks • Dealing with failures • Handling errors • Retries • Responsiveness • Optimistic updates • Cache management bit.ly/graphql-react
I need data person(ID: 4) { name, planet { name
}, films { title } } bit.ly/graphql-react
person(ID: 4) { name, ...PlanetInfo films { ...FilmInfo } }
<Person> <Planet /> <Film /> <Film /> <Film /> <Film /> </Person> bit.ly/graphql-react
bit.ly/graphql-react
None
graphfront.com