Slide 1

Slide 1 text

Reach for the Stars With Apollo hswolff @hswolff

Slide 2

Slide 2 text

GraphQL Apollo Real Life Example

Slide 3

Slide 3 text

Harry Wolff Senior UI Engineer MongoDB Blog hswolff.com Twitter & GitHub @hswolff

Slide 4

Slide 4 text

What is GraphQL?

Slide 5

Slide 5 text

What is GraphQL? Built internally by Facebook Later open-sourced

Slide 6

Slide 6 text

What is GraphQL? Query Language for your API

Slide 7

Slide 7 text

What is GraphQL? Query Language for your API

Slide 8

Slide 8 text

What is GraphQL? Query Language for your API

Slide 9

Slide 9 text

What is GraphQL? Query Language for your API

Slide 10

Slide 10 text

What is GraphQL? Query Language for your API

Slide 11

Slide 11 text

What is GraphQL? Query Language for your API

Slide 12

Slide 12 text

What is GraphQL? Type system creates full schema

Slide 13

Slide 13 text

What is GraphQL? Return data with resolvers

Slide 14

Slide 14 text

What is GraphQL? Runtime for fulfilling those queries with your existing data

Slide 15

Slide 15 text

What is GraphQL? Runtime for fulfilling those queries with your existing data

Slide 16

Slide 16 text

What is GraphQL? Runtime for fulfilling those queries with your existing data

Slide 17

Slide 17 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 18

Slide 18 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 19

Slide 19 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 20

Slide 20 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 21

Slide 21 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 22

Slide 22 text

GraphiQL Interactive in-browser GraphQL IDE

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

GraphQL Libraries Server Client

Slide 25

Slide 25 text

Open Source Project

Slide 26

Slide 26 text

Server graphql-server graphql-tools

Slide 27

Slide 27 text

Server graphql-tools Creates schema from schema language

Slide 28

Slide 28 text

Server graphql-tools

Slide 29

Slide 29 text

Server graphql-tools

Slide 30

Slide 30 text

Server graphql-tools

Slide 31

Slide 31 text

Server graphql-server GraphQL server plugin for Node.js Express, Connect, Hapi, and Koa

Slide 32

Slide 32 text

Server graphql-server

Slide 33

Slide 33 text

Client apollo-client graphql-tag react-apollo angular2-apollo

Slide 34

Slide 34 text

Client apollo-client Makes queries and mutations against your GraphQL server

Slide 35

Slide 35 text

Client

Slide 36

Slide 36 text

Client

Slide 37

Slide 37 text

Client apollo-client Supports query batching Supports query deduplication

Slide 38

Slide 38 text

Client apollo-client Built on top of Redux

Slide 39

Slide 39 text

Client graphql-tag Parses GraphQL queries with template tags

Slide 40

Slide 40 text

Client graphql-tag

Slide 41

Slide 41 text

Client graphql-tag Turns query into the GraphQL Abstract Syntax Tree (AST)

Slide 42

Slide 42 text

Client graphql-tag

Slide 43

Slide 43 text

Client Framework Integrations angular2-apollo Angular react-apollo React

Slide 44

Slide 44 text

react-apollo Similar to react-redux Creates Higher order Component Connects Components to Data

Slide 45

Slide 45 text

react-apollo

Slide 46

Slide 46 text

Real Life Example

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

We’re missing something…

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

Let’s Add Ratings!

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

GraphQL Apollo Real Life Example

Slide 69

Slide 69 text

Resources graphql.org dev.apollodata.com graphqlhub.com graphql-swapi.parseapp.com

Slide 70

Slide 70 text

Reach for the Stars With Apollo hswolff @hswolff Harry Wolff hswolff.com