Skip to main content

A framework for using GraphQL with Django.

Project description

Don’t want to use Relay with Graphene? You are not alone. All other packages for django implement the Relay interface. 😞

Graphene-Django adds the ability to filter and paginate but you must follow the Relay specification which requires the use of Nodes, Edges, Connections, and Global IDs.

Apollo is a great GraphQL client and can still be used with Relay but has its downsides.

Install

pip install graphene-django-framework

Hacking

You must have docker and docker-compose

# setup the docker env with your uid and gid
echo -e "UID=$(id -u)\nGID=$(id -g)" > .env

# first migrate the database
docker-compose run web python manage.py migrate

# create a superuser to login with
docker-compose run web python manage.py createsuperuser

# run the server
docker-compose run web python manage.py runserver
# or tests
docker-compose run web python manage.py test

Project details


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-framework-0.7.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

graphene_django_framework-0.7.1-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

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