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
Refactoring Your Mind From REST
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lachlan
June 20, 2019
Programming
0
170
Refactoring Your Mind From REST
Lachlan
June 20, 2019
Tweet
Share
More Decks by Lachlan
See All by Lachlan
How to convince your boss to use GraphQL
builtbyproxy
0
250
How to capture the other 90%
builtbyproxy
0
370
Side Projects
builtbyproxy
0
300
Source Control , What is it and why does it matter?
builtbyproxy
0
150
Other Decks in Programming
See All in Programming
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
280
OTP を自動で入力する裏技
megabitsenmzq
0
110
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
140
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
1k
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
340
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
5
1k
Ruby and LLM Ecosystem 2nd
koic
1
920
モダンOBSプラグイン開発
umireon
0
150
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
120
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
140
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.9k
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
140
How to make the Groovebox
asonas
2
2k
The untapped power of vector embeddings
frankvandijk
2
1.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Faster Mobile Websites
deanohume
310
31k
Six Lessons from altMBA
skipperchong
29
4.2k
First, design no harm
axbom
PRO
2
1.1k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
990
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
New Earth Scene 8
popppiees
1
1.7k
Skip the Path - Find Your Career Trail
mkilby
1
80
Transcript
A shameless canva ripoff theme LACHLAN YOUNG Refactoring your mind
from REST @BuiltByProxy
Who Am I? Lachlan Young - React and React Native
Full Stack Developer - Working Full Time in Australia at Max Kelsen @BuiltByProxy
The Project Stack React Native AWS AppSync Apollo GraphQL AWS
Lambda @BuiltByProxy
The Project Stack React Native AWS AppSync Apollo GraphQL AWS
Lambda @BuiltByProxy
Todays Talk @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy
SO WHAT IS GRAPHQL? @BuiltByProxy TO ME; It's a simple
API written with JSON It Upgrades REST's old Methods
UPGRADES THE REST METHODS: GET DELETE PATCH PUT POST QUERY
SUBSCRIPTION MUTATION
BUT HOW DO WE IMPLEMENT IT? CLIENT | SERVER |
DATABASE WHERE?
TODAYS TOOLS
GRAPHIQL IDE
SERVERLESS FILE
Business Logic calls. This can be your new route SERVERLESS
FUNCTION It's starting to look a lot like REST Replace your logs with external
YOU NOW HAVE ONE POINT OF TRUTH
Get User We don't have to get all the data
We only get what we want Removes the need for filtering logic or multiple different endpoints
The Schema ! mark determines if it is required or
not Scalar types List definitions
BUILTBYPROXY/APPSYNC-SERVERLESS-BOILERPLATE @BuiltByProxy