Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
JavaScriptures 4.1 - Relay
Artsy Open Source
April 11, 2018
Programming
0
110
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
260
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
580
Learning How to Learn - Artsy x React Native
artsyopensource
0
240
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
200
JavaScriptures 4.2 - Local State
artsyopensource
0
190
JavaScriptures 3 - Styled Components
artsyopensource
1
200
JavaScriptures 2 - TypeScript
artsyopensource
0
170
JavaScriptures 1 - React
artsyopensource
0
190
Other Decks in Programming
See All in Programming
なぜRubyコミュニティにコミットするのか?
luccafort
0
300
コンピュータビジョンセミナー2 / computer_vision_seminar_libSGM
fixstars
0
310
ポケモンで学ぶiOS 16弾丸ツアー 🚅
giginet
PRO
1
610
Milestoner
bkuhlmann
1
240
OIDC仕様に準拠した Makuake ID連携基盤構築の裏側
ymtdzzz
0
310
Ruby Pattern Matching
bkuhlmann
0
610
TokyoR#103_DataProcessing
kilometer
0
520
花き業界のサプライチェーンを繋げるプロダクト開発の進め方
userlike1
0
150
レガシーフレームワークからの移行
ug
0
110
PHPアプリケーションにおけるアーキテクチャメトリクスについて / Architecture Metrics in PHP Applications
isanasan
1
220
あなたと 「|」 したい・・・
track3jyo
PRO
2
1k
Refactor with using `available` and `deprecated`
417_72ki
3
380
Featured
See All Featured
Music & Morning Musume
bryan
36
4.6k
Building a Scalable Design System with Sketch
lauravandoore
451
31k
Done Done
chrislema
178
14k
No one is an island. Learnings from fostering a developers community.
thoeni
12
1.5k
Fontdeck: Realign not Redesign
paulrobertlloyd
74
4.3k
The World Runs on Bad Software
bkeepers
PRO
59
5.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
29
7.8k
Designing for Performance
lara
600
65k
GitHub's CSS Performance
jonrohan
1020
430k
Rails Girls Zürich Keynote
gr2m
87
12k
How to name files
jennybc
47
73k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
32
6.7k
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