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
570
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
990
Learning How to Learn - Artsy x React Native
artsyopensource
0
500
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
530
JavaScriptures 4.2 - Local State
artsyopensource
0
490
JavaScriptures 3 - Styled Components
artsyopensource
1
420
JavaScriptures 2 - TypeScript
artsyopensource
0
370
JavaScriptures 1 - React
artsyopensource
0
390
Other Decks in Programming
See All in Programming
Javaに鉄道指向プログラミング (Railway Oriented Pro gramming) のエッセンスを取り入れる/Bringing the Essence of Railway-Oriented Programming to Java
cocet33000
1
470
Parallel::Pipesの紹介
skaji
2
890
Interface vs Types ~型推論が過多推論~
hirokiomote
1
240
衛星の軌道をWeb地図上に表示する
sankichi92
0
260
漸進。
ssssota
0
1.6k
無関心の谷
kanayannet
0
120
実はすごいスピードで進化しているCSS
hayato_yokoyama
0
100
型安全RESTで爆速プロトタイピング – Hono RPC実践
tacke_jp
0
110
從零到一:搭建你的第一個 Observability 平台
blueswen
0
300
Cloudflare Realtime と Workers でつくるサーバーレス WebRTC
nekoya3
0
360
「兵法」から見る質とスピード
ickx
0
240
ドメインモデリングにおける抽象の役割、tagless-finalによるDSL構築、そして型安全な最適化
knih
3
780
Featured
See All Featured
Building an army of robots
kneath
306
45k
GraphQLとの向き合い方2022年版
quramy
46
14k
Designing Experiences People Love
moore
142
24k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Automating Front-end Workflow
addyosmani
1370
200k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
How to train your dragon (web standard)
notwaldorf
92
6.1k
It's Worth the Effort
3n
184
28k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
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