Let's talk about GraphQL

CommitSoftwareAlbania 220 views 22 slides Nov 30, 2018
Slide 1
Slide 1 of 22
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22

About This Presentation

Managing data is difficult and sometimes handling JSON APIs can get confusing.  Figuring out endpoints is stressful. GraphQL is here to change that. GraphQL is a query  language that can be implemented in whichever programming language you want.  Thanks to it, we can use a single endpoint to exch...


Slide Content

Let’s talk about
GraphQL

Renato Selenica
●A Lazy Developer
●All Things JavaScript
●Angular/React/Node
@renatoselenica

Table of Contents
●GraphQL intro
●Differences from RESTful
●Some CODEEE

-https://graphql.org/learn/
GraphQL is a query language for your
API, and a server-side runtime for
executing queries by using a type
system you define for your data.

GraphQL is a specification.
A set of rules to define how data travels
from the client to the server.

-Kensho blog
A visualization of a subset of the
Game of Thrones graph dataset with
compiled GraphQL. Blue vertices
correspond to characters, red
vertices are noble houses, and
orange vertices represent regions in
the Game of Thrones world. Adapted
from the Creative Commons dataset
available at
https://orientdb.com/public-
databases/GamesOfThrones.zip

It’s getting really popular

But why?

api.yourapp.com/users
api.yourapp.com/user/:id
api.yourapp.com/post/:id
api.yourapp.com/posts

Call a single endpoint

No Overfetching/Underfetching

Strongly Typed

On the other side...

GraphQL is still new

A few libraries in the scene

Power to the client

Prisma

Image- https://www.prisma.io/

Demo Time

https://roadtoreact.com