@strawberry.type
class Book:
title: str
author: Author
@strawberry.type
class Author:
name: str = "Example"
books: typing.List['Book']

Was this helpful?

Edit on Github

Newsletter 💌

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