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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Artsy Open Source
April 11, 2018
Programming
290
0
Share
JavaScriptures 4.1 - Relay
https://github.com/artsy/javascriptures/tree/master/4_intro-to-relay
Artsy Open Source
April 11, 2018
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
670
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1.1k
Learning How to Learn - Artsy x React Native
artsyopensource
0
570
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
630
JavaScriptures 4.2 - Local State
artsyopensource
0
590
JavaScriptures 3 - Styled Components
artsyopensource
1
470
JavaScriptures 2 - TypeScript
artsyopensource
0
400
JavaScriptures 1 - React
artsyopensource
0
410
Other Decks in Programming
See All in Programming
色即是空、空即是色、データサイエンス
kamoneggi
1
150
iOS26時代の新規アプリ開発
yuukiw00w
0
200
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
1.1k
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
940
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
970
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
100
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
110
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
320
AIエージェントの隔離技術の徹底比較
kawayu
0
430
Swiftのレキシカルスコープ管理
kntkymt
0
190
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
340
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
140
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
Raft: Consensus for Rubyists
vanstee
141
7.4k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
RailsConf 2023
tenderlove
30
1.4k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
310
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
Accessibility Awareness
sabderemane
1
120
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
180
Writing Fast Ruby
sferik
630
63k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
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