Skip to main content

Automatically optimize SQL queries in Graphene-Django schemas.

Project description

Graphene Django Query Optimizer

Coverage Status GitHub Workflow Status PyPI GitHub GitHub Last Commit GitHub Issues Downloads Python Version

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)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphene_django_query_optimizer-0.10.15.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file graphene_django_query_optimizer-0.10.15.tar.gz.

File metadata

File hashes

Hashes for graphene_django_query_optimizer-0.10.15.tar.gz
Algorithm Hash digest
SHA256 f4cc39dda4aff72964117a8afb554352f7a3d7a0d9f1d43d1b09f675c007a07a
MD5 cfd060c29cdfd20db8d1a9ac1f2d7a6c
BLAKE2b-256 c948860e5d4f353a2a272137d7e26dca66403677b7070b2b2c3db0406558aabf

See more details on using hashes here.

File details

Details for the file graphene_django_query_optimizer-0.10.15-py3-none-any.whl.

File metadata

File hashes

Hashes for graphene_django_query_optimizer-0.10.15-py3-none-any.whl
Algorithm Hash digest
SHA256 0217fc269580d8c8631d0c719b2a0d79f474f765b2466bebdceef7c62ff19d8c
MD5 8f502fa99bc83138cff4067169205dc4
BLAKE2b-256 dd8cfcd12bf91cb78707f3c7b5ff6d8dbfbcdf8354d831d9865e81f9146df36b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page