{"id":21222090,"url":"https://github.com/mrthearman/graphene-django-query-optimizer","last_synced_at":"2025-07-10T13:33:08.322Z","repository":{"id":188388417,"uuid":"678141122","full_name":"MrThearMan/graphene-django-query-optimizer","owner":"MrThearMan","description":"Automatically optimize SQL queries in Graphene-Django schemas.","archived":false,"fork":false,"pushed_at":"2025-07-07T19:48:18.000Z","size":4543,"stargazers_count":18,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T22:57:57.883Z","etag":null,"topics":["django","graphene","graphene-django","optimization","orm","python","sql"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/graphene-django-query-optimizer/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrThearMan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-13T20:18:26.000Z","updated_at":"2025-07-07T00:17:59.000Z","dependencies_parsed_at":"2023-08-15T23:11:15.910Z","dependency_job_id":"955938c9-ac14-4a25-aee3-5daef8177316","html_url":"https://github.com/MrThearMan/graphene-django-query-optimizer","commit_stats":null,"previous_names":["mrthearman/graphene-django-query-optimizer"],"tags_count":74,"template":false,"template_full_name":null,"purl":"pkg:github/MrThearMan/graphene-django-query-optimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrThearMan%2Fgraphene-django-query-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrThearMan%2Fgraphene-django-query-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrThearMan%2Fgraphene-django-query-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrThearMan%2Fgraphene-django-query-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrThearMan","download_url":"https://codeload.github.com/MrThearMan/graphene-django-query-optimizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrThearMan%2Fgraphene-django-query-optimizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585372,"owners_count":23632647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","graphene","graphene-django","optimization","orm","python","sql"],"created_at":"2024-11-20T22:39:37.782Z","updated_at":"2025-07-10T13:33:07.251Z","avatar_url":"https://github.com/MrThearMan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphene Django Query Optimizer\n\n[![Coverage Status][coverage-badge]][coverage]\n[![GitHub Workflow Status][status-badge]][status]\n[![PyPI][pypi-badge]][pypi]\n[![GitHub][licence-badge]][licence]\n[![GitHub Last Commit][repo-badge]][repo]\n[![GitHub Issues][issues-badge]][issues]\n[![Downloads][downloads-badge]][pypi]\n[![Python Version][version-badge]][pypi]\n\n```shell\npip install graphene-django-query-optimizer\n```\n\n---\n\n**Documentation**: [https://mrthearman.github.io/graphene-django-query-optimizer/](https://mrthearman.github.io/graphene-django-query-optimizer/)\n\n**Source Code**: [https://github.com/MrThearMan/graphene-django-query-optimizer/](https://github.com/MrThearMan/graphene-django-query-optimizer/)\n\n**Contributing**: [https://github.com/MrThearMan/graphene-django-query-optimizer/blob/main/CONTRIBUTING.md](https://github.com/MrThearMan/graphene-django-query-optimizer/blob/main/CONTRIBUTING.md)\n\n---\n\nSolve the GraphQL [N+1 problem] in [graphene-django] applications\njust by changing a few imports, automatically adding the appropriate\n[`only`](https://docs.djangoproject.com/en/dev/ref/models/querysets/#only),\n[`select_related`](https://docs.djangoproject.com/en/dev/ref/models/querysets/#select-related),\nand [`prefetch_related`](https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related)\nmethod calls to your QuerySets to fetch _only_ what you need.\n\n```python\nimport graphene\nfrom example_project.app.models import Example\n\nfrom query_optimizer import DjangoObjectType, DjangoListField\n\nclass ExampleType(DjangoObjectType):\n    class Meta:\n        model = Example\n\nclass Query(graphene.ObjectType):\n    all_examples = DjangoListField(ExampleType)\n\nschema = graphene.Schema(query=Query)\n```\n\n[coverage-badge]: https://coveralls.io/repos/github/MrThearMan/graphene-django-query-optimizer/badge.svg?branch=main\n[coverage]: https://coveralls.io/github/MrThearMan/graphene-django-query-optimizer?branch=main\n[downloads-badge]: https://img.shields.io/pypi/dm/graphene-django-query-optimizer\n[graphene-django]: https://github.com/graphql-python/graphene-django\n[issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/graphene-django-query-optimizer\n[issues]: https://github.com/MrThearMan/graphene-django-query-optimizer/issues\n[licence-badge]: https://img.shields.io/github/license/MrThearMan/graphene-django-query-optimizer\n[licence]: https://github.com/MrThearMan/graphene-django-query-optimizer/blob/main/LICENSE\n[N+1 problem]: https://stackoverflow.com/a/97253\n[pypi-badge]: https://img.shields.io/pypi/v/graphene-django-query-optimizer\n[pypi]: https://pypi.org/project/graphene-django-query-optimizer\n[repo-badge]: https://img.shields.io/github/last-commit/MrThearMan/graphene-django-query-optimizer\n[repo]: https://github.com/MrThearMan/graphene-django-query-optimizer/commits/main\n[status-badge]: https://img.shields.io/github/actions/workflow/status/MrThearMan/graphene-django-query-optimizer/test.yml?branch=main\n[status]: https://github.com/MrThearMan/graphene-django-query-optimizer/actions/workflows/test.yml\n[version-badge]: https://img.shields.io/pypi/pyversions/graphene-django-query-optimizer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrthearman%2Fgraphene-django-query-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrthearman%2Fgraphene-django-query-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrthearman%2Fgraphene-django-query-optimizer/lists"}