Our great sponsors
-
graphene-django
Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
There are a few other frameworks out there like Ariadne and Strawberry. I haven't tried them out as both seemed also quite new and immature and I imagine I'd run into the same performance issues with them.
in my last project I used graphene to build a Django backend application with GraphQL. It seemed like the best framework to adopt graphql in python at that time in terms of stability and maturity.
The N+1 problem is going to exist no matter what framework or approach you use, even if you switch to REST. There exists a N+1 optimizer for graphene that will read your queries and prefetch/select the relevant fields to make things easier.