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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yehor Kisilov
August 11, 2021
43
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
Featured
See All Featured
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
A better future with KSS
kneath
240
18k
Automating Front-end Workflow
addyosmani
1370
210k
Everyday Curiosity
cassininazir
0
400
Designing Experiences People Love
moore
143
24k
The SEO identity crisis: Don't let AI make you average
varn
0
630
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
For a Future-Friendly Web
brad_frost
184
11k
WENDY [Excerpt]
tessaabrams
14
40k
Transcript
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