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
250
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
490
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
510
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
「”誤った使い方をすることが困難”な設計」で良いコードの基礎を固めよう / phpcon-odawara-2025
taniguhey
0
130
AIコードエディタの基盤となるLLMのFlutter性能評価
alquist4121
0
200
国漢文混用体からHolloまで
minhee
1
180
サービスクラスのありがたみを発見したときの思い出 #phpcon_odawara
77web
4
630
メモリウォールを超えて:キャッシュメモリ技術の進歩
kawayu
0
1.9k
API for docs
soutaro
2
1.1k
AWS で実現する安全な AI エージェントの作り方 〜 Bedrock Engineer の実装例を添えて 〜 / how-to-build-secure-ai-agents
gawa
8
750
AI時代の開発者評価について
ayumuu
0
120
List とは何か? / PHPerKaigi 2025
meihei3
0
800
Kamal 2 – Get Out of the Cloud
aleksandrov
1
180
小田原でみんなで一句詠みたいな #phpcon_odawara
stefafafan
0
320
「影響が少ない」を自分の目でみてみる
o0h
PRO
2
1k
Featured
See All Featured
Facilitating Awesome Meetings
lara
54
6.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2k
Git: the NoSQL Database
bkeepers
PRO
430
65k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
13
660
Producing Creativity
orderedlist
PRO
344
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Cost Of JavaScript in 2023
addyosmani
49
7.7k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
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