Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lightning Talk at JSConf 2015
Search
Dafeng
July 12, 2015
Programming
1.3k
12
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lightning Talk at JSConf 2015
Quick intro to GraphQL and Relay
Dafeng
July 12, 2015
More Decks by Dafeng
See All by Dafeng
Things to Know before Building Large-scale React.js Application
dfguo
6
1.9k
ReactJS in Strikingly
dfguo
6
1.1k
I’ ve shipped the code, what’ s next
dfguo
6
700
Other Decks in Programming
See All in Programming
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
220
tsc.rip を支える技術 / Kyoto.なんか #8
susisu
0
120
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
190
源内ハンズオン概要編
hideg
0
210
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
400
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
1.6k
Dockerfile CMD for Node.js
grazie1999
0
110
バグを直したら useEffect が消えた
colorful12
3
690
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
170
進化を続けるGo toolsの現在地 / The Current State of Ever-Evolving Go Tools
hond0413
0
250
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
540
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
140
Featured
See All Featured
The Mindset for Success: Future Career Progression
greggifford
PRO
0
470
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
640
BBQ
matthewcrist
89
10k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Skip the Path - Find Your Career Trail
mkilby
1
190
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
400
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
Side Projects
sachag
455
43k
The untapped power of vector embeddings
frankvandijk
2
1.8k
How to Talk to Developers About Accessibility
jct
2
520
The SEO Collaboration Effect
kristinabergwall1
1
530
Transcript
GraphQL and Relay Lightning Talk at JSConf 2015
About me • Dafeng Guo, CTO of strikingly.com • Strikingly
• simplest website builder • probably the largest React.js user in China
GraphQL What the hell is it?
None
None
“REST is perfect!” - A random backend engineer
REST-ful API Sometimes Sucks • Round trip for complicated objects
• Variable fields • Custom endpoint - not REST-ful design • Backend engineer dependency - slow down iterations
GraphQL • Server-side engineers published a type system • Client-side
engineers use GraphQL as a unified query interface • No more adhoc endpoints • Product changes are faster
None
Are we writing SQL in the client?! NO!
GraphQL Query JSON Response
GraphQL • REST-ful sometimes sucks • GraphQL is declarative •
GraphQL allows product engineers to iterate faster • Draft spec was released
Relay GraphQL on React
Component • Component is at the core of React •
Reusing any component, we are reusing • HTML - React • Javascript - React • CSS - Maybe React? • Data fetching - Relay
Relay • Allows you to define the data format the
component needs using GraphQL • Relay automatically fetch the data • Supports nested/composite components
Relay • Solving the data fetching problem • Supports composite
components • Makes component reuse possible • Will be open sourced in August
Thanks!