SlideShare a Scribd company logo
How to GraphQL: React Apollo
November 14, 2017
Tomasz Bąk
t.bak@selleo.com
About me
● software developer and architect, speaker, trainer
○ 12+ years of experience
○ 4+ years senior frontend developer
■ Ember, Angular, React
● co-founder of selleo.com
● http://selleo.com/people/tomasz-bak
How to GraphQL: React Apollo
Agenda
What is Apollo?
Integration with React
Workshops
What is Apollo?
Source: https://www.slideshare.net/reactconfbr/sashko-stubailo-the-graph-ql-and-apollo-stack-connecting-everything-together
Client-side tooling
● Apollo Client
● Dev tools
● apollo-codegen
● eslint-plugin-graphql
Server-side tooling
● Graphql-tools
○ Schema creation
○ Mocking
○ Stitching
● Apollo Server
● Apollo Optics
A set of projects designed to leverage GraphQL
What is Apollo Client?
Source: https://www.apollographql.com/client/
Community driven GraphQL client for JavaScript and native platforms
Bind GraphQL data to your UI with one function call.
Key concepts of the Apollo Client
Source: https://www.apollographql.com/docs/react/index.html
● Incrementally adoptable
● Universally compatible
● Simple to get started with
● Inspectable and understandable
● Built for interactive apps
● Community driven
Integration with React
Source: https://www.apollographql.com/docs/react/index.html
Write queries, not code
Query
Write queries, not code
Component
Write queries, not code
View
Write queries, not code
Edit
The benefits
● Eliminate frontend data boilerplate
● Pull complexity out of the client
● Improve performance
● Incrementally evolve your API
● Types and validation across the stack
Source: https://www.apollographql.com/
Source: https://dev-blog.apollodata.com/reducing-our-redux-code-with-react-apollo-5091b9de9c2a
How to GraphQL: React Apollo
Workshops
graphql-ruby (~908k total downloads)
react-apollo (~267k downloads in the last month)
● Based on classic Northwind sample database
● Best Practices, TDD
● Signup, Signin
● Dashboard with charts
● CRUD, validations
● Nested objects
● Filtering and sorting listings

More Related Content

PPT
Graphql presentation
PPTX
An intro to GraphQL
PDF
React & GraphQL
PDF
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
PDF
REST vs GraphQL
PPTX
Introduction to graphQL
PDF
Intro to GraphQL
PDF
GraphQL: Enabling a new generation of API developer tools
Graphql presentation
An intro to GraphQL
React & GraphQL
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
REST vs GraphQL
Introduction to graphQL
Intro to GraphQL
GraphQL: Enabling a new generation of API developer tools

What's hot (20)

PDF
Introduction to GraphQL
PDF
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
PDF
The Apollo and GraphQL Stack
PDF
Getting started with Apollo Client and GraphQL
PDF
GraphQL Fundamentals
PPTX
Introduction to GraphQL
PDF
Better APIs with GraphQL
PPTX
Introduction to GraphQL
PDF
Spring GraphQL
PPTX
Intro GraphQL
PDF
PDF
Graphql
PDF
Introduction to GraphQL
PPTX
Evening out the uneven: dealing with skew in Flink
PPTX
What is gRPC introduction gRPC Explained
PDF
Getting Started with Spring for GraphQL
PDF
Introduction to Kong API Gateway
PDF
Introduction to gRPC
PDF
How to GraphQL
PPTX
GraphQL Introduction
Introduction to GraphQL
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
The Apollo and GraphQL Stack
Getting started with Apollo Client and GraphQL
GraphQL Fundamentals
Introduction to GraphQL
Better APIs with GraphQL
Introduction to GraphQL
Spring GraphQL
Intro GraphQL
Graphql
Introduction to GraphQL
Evening out the uneven: dealing with skew in Flink
What is gRPC introduction gRPC Explained
Getting Started with Spring for GraphQL
Introduction to Kong API Gateway
Introduction to gRPC
How to GraphQL
GraphQL Introduction
Ad

Similar to How to GraphQL: React Apollo (20)

PDF
Sashko Stubailo - The GraphQL and Apollo Stack: connecting everything together
PPTX
Create GraphQL server with apolloJS
PDF
react-apollo
PDF
Fly me to the moon
PDF
GraphQL over REST at Reactathon 2018
PDF
GraphQL Los Angeles Meetup Slides
PPTX
Redux vs GraphQL
PDF
How to use apolloJS on React ?
PDF
Graphql usage
PDF
GraphQL vs. (the) REST
PPTX
React Flux to GraphQL
PPTX
Introduction to Graph QL
PDF
Getting started with GraphQL
PPTX
GraphQL - Missing Link In REST
PPTX
GraphQL API Crafts presentation
PDF
Let's talk about GraphQL
PDF
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
PDF
Why UI developers love GraphQL
PDF
Introduction to GraphQL for beginners
Sashko Stubailo - The GraphQL and Apollo Stack: connecting everything together
Create GraphQL server with apolloJS
react-apollo
Fly me to the moon
GraphQL over REST at Reactathon 2018
GraphQL Los Angeles Meetup Slides
Redux vs GraphQL
How to use apolloJS on React ?
Graphql usage
GraphQL vs. (the) REST
React Flux to GraphQL
Introduction to Graph QL
Getting started with GraphQL
GraphQL - Missing Link In REST
GraphQL API Crafts presentation
Let's talk about GraphQL
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
Why UI developers love GraphQL
Introduction to GraphQL for beginners
Ad

More from Tomasz Bak (17)

PDF
Design Patterns in React
PDF
Building React CRUD app in minutes?
PDF
How to migrate large project from Angular to React
PDF
JAMstack
PDF
e2e testing with cypress
PDF
Working with npm packages
PDF
How to replace rails asset pipeline with webpack?
PDF
Functional Reactive Angular 2
PDF
Jak wnieść wkład w Open Source?
PDF
JavaScript Promises
PDF
Replacing Rails asset pipeline with Gulp
PPTX
Ulepszanie aplikacji webowej z AngularJS
PDF
Bardziej produktywny gmail
PDF
Kerberos
PDF
Rails tobak2005
PDF
Ldap novell
PDF
Testowanie JavaScript
Design Patterns in React
Building React CRUD app in minutes?
How to migrate large project from Angular to React
JAMstack
e2e testing with cypress
Working with npm packages
How to replace rails asset pipeline with webpack?
Functional Reactive Angular 2
Jak wnieść wkład w Open Source?
JavaScript Promises
Replacing Rails asset pipeline with Gulp
Ulepszanie aplikacji webowej z AngularJS
Bardziej produktywny gmail
Kerberos
Rails tobak2005
Ldap novell
Testowanie JavaScript

Recently uploaded (20)

PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
System and Network Administraation Chapter 3
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
history of c programming in notes for students .pptx
Design an Analysis of Algorithms II-SECS-1021-03
Reimagine Home Health with the Power of Agentic AI​
Upgrade and Innovation Strategies for SAP ERP Customers
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
2025 Textile ERP Trends: SAP, Odoo & Oracle
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Softaken Excel to vCard Converter Software.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
System and Network Administraation Chapter 3
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Odoo POS Development Services by CandidRoot Solutions
Wondershare Filmora 15 Crack With Activation Key [2025
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
wealthsignaloriginal-com-DS-text-... (1).pdf
Odoo Companies in India – Driving Business Transformation.pdf
top salesforce developer skills in 2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
CHAPTER 2 - PM Management and IT Context
history of c programming in notes for students .pptx

How to GraphQL: React Apollo

  • 1. How to GraphQL: React Apollo November 14, 2017 Tomasz Bąk t.bak@selleo.com
  • 2. About me ● software developer and architect, speaker, trainer ○ 12+ years of experience ○ 4+ years senior frontend developer ■ Ember, Angular, React ● co-founder of selleo.com ● http://selleo.com/people/tomasz-bak
  • 4. Agenda What is Apollo? Integration with React Workshops
  • 5. What is Apollo? Source: https://www.slideshare.net/reactconfbr/sashko-stubailo-the-graph-ql-and-apollo-stack-connecting-everything-together Client-side tooling ● Apollo Client ● Dev tools ● apollo-codegen ● eslint-plugin-graphql Server-side tooling ● Graphql-tools ○ Schema creation ○ Mocking ○ Stitching ● Apollo Server ● Apollo Optics A set of projects designed to leverage GraphQL
  • 6. What is Apollo Client? Source: https://www.apollographql.com/client/ Community driven GraphQL client for JavaScript and native platforms Bind GraphQL data to your UI with one function call.
  • 7. Key concepts of the Apollo Client Source: https://www.apollographql.com/docs/react/index.html ● Incrementally adoptable ● Universally compatible ● Simple to get started with ● Inspectable and understandable ● Built for interactive apps ● Community driven
  • 8. Integration with React Source: https://www.apollographql.com/docs/react/index.html
  • 9. Write queries, not code Query
  • 10. Write queries, not code Component
  • 11. Write queries, not code View
  • 12. Write queries, not code Edit
  • 13. The benefits ● Eliminate frontend data boilerplate ● Pull complexity out of the client ● Improve performance ● Incrementally evolve your API ● Types and validation across the stack Source: https://www.apollographql.com/
  • 16. Workshops graphql-ruby (~908k total downloads) react-apollo (~267k downloads in the last month) ● Based on classic Northwind sample database ● Best Practices, TDD ● Signup, Signin ● Dashboard with charts ● CRUD, validations ● Nested objects ● Filtering and sorting listings