~/talk

Building high-performance, type-safe GraphQL APIs with Strawberry and Django

Talkat DjangoCon US 2023 · 2023-10-16..10-20· [python, graphql]
slides:none on file

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

  1. 0:00Introduction
  2. 5:50What is GraphQL
  3. 13:24Strawberry simplifies schema
  4. 17:39Strawberry with Django
  5. 25:18Filtering, ordering, pagination
  6. 32:13Permissions and security
  7. 35:31GraphQL pitfalls and performance
  8. 40:54Optimizing with Strawberry Django
  9. 44:30Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.