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
JavaScriptures 4.1 - Relay
Search
Artsy Open Source
April 11, 2018
Programming
0
260
JavaScriptures 4.1 - Relay
https://github.com/artsy/javascriptures/tree/master/4_intro-to-relay
Artsy Open Source
April 11, 2018
Tweet
Share
More Decks by Artsy Open Source
See All by Artsy Open Source
Adding React Native to an Existing App - Artsy x React Native 2018
artsyopensource
0
560
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
970
Learning How to Learn - Artsy x React Native
artsyopensource
0
500
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
520
JavaScriptures 4.2 - Local State
artsyopensource
0
480
JavaScriptures 3 - Styled Components
artsyopensource
1
410
JavaScriptures 2 - TypeScript
artsyopensource
0
370
JavaScriptures 1 - React
artsyopensource
0
380
Other Decks in Programming
See All in Programming
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
6
1.4k
KANNA Android の技術的課題と取り組み
watabee
0
170
Golangci-lint v2爆誕: 君たちはどうすべきか
logica0419
1
220
Bedrock × Confluenceで簡単(?)社内RAG
iharuoru
1
110
파급효과: From AI to Android Development
l2hyunwoo
0
160
Deoptimization: How YJIT Speeds Up Ruby by Slowing Down / RubyKaigi 2025
k0kubun
1
1.8k
カオスに立ち向かう小規模チームの装備の選択〜フルスタックTSという装備の強み _ 弱み〜/Choosing equipment for a small team facing chaos ~ Strengths and weaknesses of full-stack TS~
bitkey
1
130
ComposeでのPicture in Picture
takathemax
0
130
カウシェで Four Keys の改善を試みた理由
ike002jp
1
120
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
130
Enterprise Web App. Development (1): Build Tool Training Ver. 5
knakagawa
1
120
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
200
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
The Cult of Friendly URLs
andyhume
78
6.3k
Building Applications with DynamoDB
mza
94
6.4k
Visualization
eitanlees
146
16k
Faster Mobile Websites
deanohume
306
31k
Navigating Team Friction
lara
185
15k
GraphQLの誤解/rethinking-graphql
sonatard
71
10k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
What's in a price? How to price your products and services
michaelherold
245
12k
RailsConf 2023
tenderlove
30
1.1k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
Automating Front-end Workflow
addyosmani
1370
200k
Transcript
Relay Let there be data in the firmament JavaScriptures IV.I
Alloy
Why have an API client at all?
Description • Provide application code with an interface abstracted away
from network/API details • Handle authentication in a single place • Handle caching in a single place • Handle errors in a single place Responsibilities of an API client
Relay A framework for data-driven React apps
Declare the data your components need with GraphQL, Relay determines
how and when to fetch your data. Declarative
GraphQL is written next to the views that rely on
them. Relay aggregates queries into efficient network requests. Colocation
Write GraphQL mutations and Relay offers automatic data consistency, optimistic
updates, and error handling. Mutations
Relay compiler uses your full GraphQL schema at compile-time to
ensure the data consistency Safety
Example
Competitors