diff --git a/README.md b/README.md index 0d9361c175af88eb619f431c17ce73fe2dccccfb..c5a6d5294d9a2d0d16313eda833f1110e24f2e49 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,5 @@ # graphene-django-optimizer -[](https://travis-ci.com/github/tfoxy/graphene-django-optimizer) -[](https://codecov.io/gh/tfoxy/graphene-django-optimizer) -[](https://pypi.org/project/graphene-django-optimizer/) - - - Optimize queries executed by [graphene-django](https://github.com/graphql-python/graphene-django) automatically, using [`select_related`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related), [`prefetch_related`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#prefetch-related) and [`only`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#only) methods of Django QuerySet. @@ -16,8 +10,6 @@ Optimize queries executed by [graphene-django](https://github.com/graphql-python pip install graphene-django-optimizer ``` -*Note: If you are using Graphene V2, please install version `0.8`. v0.9 and forward will support only Graphene V3* - ## Usage Having the following schema based on [the tutorial of graphene-django](http://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/#hello-graphql-schema-and-object-types) (notice the use of `gql_optimizer`) @@ -198,7 +190,7 @@ class IngredientType(gql_optimizer.OptimizedDjangoObjectType): class Meta: model = Ingredient - + def resolve_calculated_calories(root, info): return get_calories_for_ingredient(root.id) diff --git a/setup.py b/setup.py index 6a3e1e85202a48a58a89658f3ceb83214ddd372e..523861bc688011e74c909f585d50de9f1ac1478e 100755 --- a/setup.py +++ b/setup.py @@ -13,14 +13,14 @@ def read(fname): setup( - name="graphene-django-optimizer", - version="0.9.1", - author="Tomás Fox", - author_email="tomas.c.fox@gmail.com", + name="graphene-django-optimizer-reloaded", + version="0.9.2", + author="Jonathan Weth", + author_email="dev@jonathanweth.de", description="Optimize database access inside graphene queries.", license="MIT", keywords="graphene django optimizer optimize graphql query prefetch select related", - url="https://github.com/tfoxy/graphene-django-optimizer", + url="https://edugit.org/AlekSIS/libs/graphene-django-optimizer", packages=["graphene_django_optimizer"], setup_requires=pytest_runner, long_description=read("README.md"),