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)
Metadata
Release files for graphene-django-query-optimizer 0.11.0
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.11.0.tar.gz | 25.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphene_django_query_optimizer-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.4 kB
Release files / graphene_django_query_optimizer-0.11.0.tar.gz
| Download URL | graphene_django_query_optimizer-0.11.0.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aec095e119f86d00b3914dfce17c3c61b66b026b8fd4efc3d26e33d4625d7e68
|
|
BLAKE2b-256 checksum How to use checksums |
508d83a7111e242730e534e51f1e203c46e5062b43098ba2c35e17e9fe554877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / graphene_django_query_optimizer-0.11.0-py3-none-any.whl
| Download URL | graphene_django_query_optimizer-0.11.0-py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef9d3685630f5a84577b75fb1cd9ae1f1547fe2e700ebcc2b07d825692217758
|
|
BLAKE2b-256 checksum How to use checksums |
1a1cbfa8c781488af6b951f1e23602e17d3b4d7420fd6ac9a7c80c79a5c3f074
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|