Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
GraphQL - how we use it
Search
Yehor Kisilov
August 11, 2021
44
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GraphQL - how we use it
Brief talk about GraphQL technology, how we use it at BetterMe and our plans.
Yehor Kisilov
August 11, 2021
Transcript
25 slides
Yehor Kisilov, iOS Engineer @ BetterMe GraphQL How we use
it?
Origin • Introduced by Facebook in 2012, public release in
2015 • GraphQL Foundation in 2018, hosted by Linux Foundation
Reasons • Multiple requests causing app performance problems • Data
overfetching • Backend-Frontend coupling
Components
Components • Schemas and Types • Queries and Mutations
Components Schemas and Types
Components Queries
Components Mutations
Pros and Cons
Pros • Declarative • Strongly typed • Introspective • Versioning
Pros Declarative data fetch
Pros Strongly typed • De fi ne the data structure
and the information that can be consumed • De fi nitions are written down in a Schema
Pros Introspection • Fetch schema using HTTP client • Valid
queries and data models on a spot • Documentation
Pros Versioning
Cons • Lack o ff built-in caching • Query complexity
• Maximum depth of query
How it works
Backend. How it works Technologies • Go • GQLGen for
GraphQL layer generation • Neo4J graph database platform
Backend. How it works Performance and security • Batch data
loading • Cyclomatic query complexity check • Data validation • Error handling
Client side. How it works • Feature development starts with
schema • Documentation • Code generation for requests • Error handling
Client side. How it works Documentation • Stored within schema
• Up-to-date according to current schema
Client side. How it works Code generation for requests •
Inspired by graphql-code-generator@github Schem a + Operations ➡
Client side. How it works Error handling • Multiple errors
in response • Custom validation and status codes • Handle each error individually
Next steps
Next steps Persistent queries
Next steps Apollo GraphQL Studio
Featured
See All Featured
Paper Plane
katiecoart
PRO
6
55k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Navigating Team Friction
lara
192
16k
WCS-LA-2024
lcolladotor
0
1k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
610
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Discover your Explorer Soul
emna__ayadi
2
1.4k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Why Our Code Smells
bkeepers
PRO
340
58k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
390