Graphene Django Query Optimizer
pip install graphene-django-query-optimizer
Documentation: https://mrthearman.github.io/graphene-django-query-optimizer/
Source Code: https://github.com/MrThearMan/graphene-django-query-optimizer/
Contributing: https://github.com/MrThearMan/graphene-django-query-optimizer/blob/main/CONTRIBUTING.md
Solve the GraphQL N+1 problem in graphene-django applications
just by changing a few imports, automatically adding the appropriate
only,
select_related,
and prefetch_related
method calls to your QuerySets to fetch only what you need.
import graphene
from example_project.app.models import Example
from query_optimizer import DjangoObjectType, DjangoListField
class ExampleType(DjangoObjectType):
class Meta:
model = Example
class Query(graphene.ObjectType):
all_examples = DjangoListField(ExampleType)
schema = graphene.Schema(query=Query)
Release files for graphene-django-query-optimizer 0.10.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graphene_django_query_optimizer-0.10.16.tar.gz | 27.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphene_django_query_optimizer-0.10.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.8 kB
Release files / graphene_django_query_optimizer-0.10.16.tar.gz
| Download URL | graphene_django_query_optimizer-0.10.16.tar.gz |
|---|---|
| Size | 27.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc9c81d94627fa7f0e26de632276583de47b1e46510892ec7f3d45e35c862e92
|
|
BLAKE2b-256 checksum How to use checksums |
c89b0df41b0146e78c62f6f8775cc700fc33d8cc1781984771ae6366efd13365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.7 Linux/6.17.0-1022-azure
|
Release files / graphene_django_query_optimizer-0.10.16-py3-none-any.whl
| Download URL | graphene_django_query_optimizer-0.10.16-py3-none-any.whl |
|---|---|
| Size | 32.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f89ee9b02a5c8ceeb4baed82b3f5fac605c6c0d0cb22138afa08712016f36711
|
|
BLAKE2b-256 checksum How to use checksums |
b8844882d3dc6e962c41ec409bc9be2e188484025e031522418822a72378e99f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.7 Linux/6.17.0-1022-azure
|