Strawberry is a new GraphQL library for Python 3, inspired by dataclasses.

import strawberry

class User:
    name: str
    age: int

class Query:
    def user(self) -> User:
        return User(name="Patrick", age=100)

schema = strawberry.Schema(query=Query)

Learn how to create GraphQL API using Strawberry

View documentation 📝
Create GraphQL APIs in no time

Strawberry's friendly API allows to create GraphQL API rather quickly, the debug server makes it easy to quickly test and debug.

Django and ASGI support allow to have your API deployed in production in matter of minutes

Newsletter 💌

Do you want to receive the latest updates on Strawberry? Subscribe to our newsletter!