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
Lachlan
June 20, 2019
Programming
0
130
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
240
How to capture the other 90%
builtbyproxy
0
360
Side Projects
builtbyproxy
0
290
Source Control , What is it and why does it matter?
builtbyproxy
0
130
Other Decks in Programming
See All in Programming
教えて!スクラムコーチ品質とスピードのバランスはどうすりゃいいの?
pinboro
0
110
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
300
Using "modern" Ruby to build a better, faster Homebrew
mikemcquaid
2
270
PHPコードの実行モデルを理解する / Understanding-the-PHP-Execution-Model
shin1x1
0
1.1k
Powerfully Typed TypeScript
euxn23
3
1.7k
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
560
GoでParserを書く
karupanerura
3
350
“Seeing Like a Programmer”—Resiliency, Limits, and Moral Hazards in Software Engineering (LambdaConf 2024)
chriskrycho
0
430
Implementing Design Systems in Swift
seyfoyun
2
530
WebGLで始める コンピュータグラフィックス入門
heller77
0
370
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
2
140
一文字エイリアスのすすめ
fujimura
0
200
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
A Tale of Four Properties
chriscoyier
153
22k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.8k
Into the Great Unknown - MozCon
thekraken
15
1.1k
Six Lessons from altMBA
skipperchong
22
3k
jQuery: Nuts, Bolts and Bling
dougneiner
60
7.2k
Teambox: Starting and Learning
jrom
128
8.4k
Why Our Code Smells
bkeepers
PRO
331
56k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.3k
The Pragmatic Product Professional
lauravandoore
26
5.9k
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