Strawberry GraphQL Django extension
Actively maintained. Last release 2 days ago, commits in 22 of the last 26 weeks. A safe choice.
pip install strawberry-graphql-djangoStrawberry GraphQL Django Integration
Strawberry GraphQL Django integration provides powerful tools to build GraphQL APIs with Django. Automatically generate GraphQL types, queries, mutations, and resolvers from your Django models with full type safety.
Installation
pip install strawberry-graphql-django
Features
- 🍓 Automatic Type Generation - Generate GraphQL types from Django models with full type safety
- 🔍 Advanced Filtering - Powerful filtering system with lookups (contains, exact, in, etc.)
- 📄 Pagination - Built-in offset and cursor-based (Relay) pagination
- 📊 Ordering - Sort results by any field with automatic ordering support
- 🔐 Authentication & Permissions - Django auth integration with flexible permission system
- ✨ CRUD Mutations - Auto-generated create, update, and delete mutations with validation
- ⚡ Query Optimizer - Automatic
select_relatedandprefetch_relatedto prevent N+1 queries - 🐍 Django Integration - Works with Django views (sync and async), forms, and validation
- 🐛 Debug Toolbar - GraphiQL integration with Django Debug Toolbar for query inspection