Building high-performance, type-safe GraphQL APIs with Strawberry and Django
summary
Shows building a type‑safe GraphQL API with Strawberry and Django by generating types and resolvers from Django models, using strawberry-django.type to return model instances directly and the optimizer extension to turn queries into efficient Django ORM calls. Filters, ordering, pagination and permission hooks are implemented; the optimizer issues select_related/prefetch_related and .only() to avoid N+1 and overfetching, and the end result is a working, async-capable API that demonstrably reduces queries.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 5:50What is GraphQL
- 13:24Strawberry simplifies schema
- 17:39Strawberry with Django
- 25:18Filtering, ordering, pagination
- 32:13Permissions and security
- 35:31GraphQL pitfalls and performance
- 40:54Optimizing with Strawberry Django
- 44:30Conclusion
related talks
41mBuilding high-performance, type-safe GraphQL APIs with Strawberry and Django
02h 23mBuild a production ready GraphQL API using Python
23mIntroduction to Django and GraphQL
31mA few myths about GraphQL
26mDynamically Serving a GraphQL API with Custom Types at Runtime
27mGraphQL in Python and Django
24mA New Look Into APIS - Graphene
22mA GraphQL Framework in Non-JS Servers
