Introduction

What is Strawberry?

Strawberry is a Python library for building GraphQL APIs. It's built on top of GraphQL Core and supports both async and sync execution. It also has integrations for Django and other frameworks.

What is GraphQL?

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.

GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

Why GraphQL?

GraphQL was created by Facebook in 2012 and open-sourced in 2015. Since then it has been adopted by many companies, including GitHub, Shopify, and Twitter.

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

What is this workshop about?

In this workshop, we will build a GraphQL API using Strawberry. We will start by creating a basic API, then we will add features to it.

What is the goal?

The goal is to learn how to use Strawberry to build a GraphQL API.

What do I need?

To follow this workshop you will need:

Python 3.7 or later

A code editor, we recommend using VS Code

Who is this workshop for?

This workshop is for people who want to learn how to build a GraphQL API using Strawberry.

What will I learn?

At the end of this workshop, you will be able to:

  1. Create a GraphQL API using Strawberry
  2. Add features to your GraphQL API

What will I build?

We will build an API for a podcast app. The API will allow users to list podcasts, get a single podcast, list the latest episodes and subscribe to a podcast.