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
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
680
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1.1k
Learning How to Learn - Artsy x React Native
artsyopensource
0
580
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
630
JavaScriptures 4.2 - Local State
artsyopensource
0
600
JavaScriptures 3 - Styled Components
artsyopensource
1
480
JavaScriptures 2 - TypeScript
artsyopensource
0
400
JavaScriptures 1 - React
artsyopensource
0
410
Other Decks in Programming
See All in Programming
音楽のための関数型プログラミング言語mimiumにおける多段階計算の活用
tomoyanonymous
1
370
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
200
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
450
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
270
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
3.8k
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
230
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
230
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
160
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.7k
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
140
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
560
Foundation Models frameworkで画像分析
ryodeveloper
1
160
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
174
15k
How GitHub (no longer) Works
holman
316
150k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
230
Being A Developer After 40
akosma
91
590k
Designing for humans not robots
tammielis
254
26k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
Context Engineering - Making Every Token Count
addyosmani
9
1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
640
Amusing Abliteration
ianozsvald
1
240
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.5k
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