Building a GraphQL
Server in 30 minutes
In Python, Ariadne & Starlette
Marcin Gębala
@maarcingebala
Slide 2
Slide 2 text
About me
» Python, Django, GraphQL at
Mirumee Software
» Lead Developer at Saleor
github.com/mirumee/saleor
» Based in Wrocław, Poland
»
! " #
@maarcingebala
Slide 3
Slide 3 text
What is GraphQL?
GraphQL is a query language for APIs and a runtime
for fulfilling those queries with your existing data.
» Fetching only data that is needed
» Combining resources in a single request
» Strong typing
» Backend agnostic
@maarcingebala
Slide 4
Slide 4 text
Use-cases
» Building APIs for web and mobile apps
» Works great with single-page apps!
» Apollo Client + React + Typescript
» Code generation
» Federations
» Combining multiple services under one gateway
@maarcingebala
Ariadne
Library for building GraphQL servers in Python,
crafted with ❤ at Mirumee Software.
» Lightweight and simple
» Schema-first
» Asynchronous
» github.com/mirumee/ariadne
@maarcingebala
Slide 8
Slide 8 text
Demo
bit.ly/3037tu7
@maarcingebala
Slide 9
Slide 9 text
Resources
» Books:
» "Learning GraphQL" by Eve Porcello, Alex Banks
» "Production Ready GraphQL" by Marc-Andre Giroux
» Tutorials:
» Apollo tutorial - apollographql.com/docs/tutorial/introduction
» How to GraphQL - howtographql.com
» Ariadne - ariadnegraphql.org
» API examples:
» Github API - docs.github.com/en/graphql
» Saleor API - pwa.demo.saleor.rocks/graphql
@maarcingebala