Skip to main content

Easy to use resolvers (CRUD, Relay-Connection, List, Detail) for your graphql server.

Project description

ariadne-django-resolvers

This library provides some class based dry resolvers for your graphql schema built with ariadne and django.

Included resolvers:

  • Detail
  • List
    • Filtering and ordering supported out of the box.
  • Create
  • Delete
  • Update
  • Relay-Connection:
    • Filtering and ordering supported out of the box.
    • Paginate through your querysets with 'after', 'before', 'first' and 'last' arguments.
    • Return a total_count of all objects in that queryset.
    • Return a pageInfo object with the field 'startCursor', 'endCursor', 'hasPreviousPage' and 'hasNextPage'

Installation:

pip install ariadne-django-resolvers

Example project

To start the included example follow these steps:

  1. git clone https://github.com/teseda/ariadne-django-resolvers.git
  2. cd ariadne-django-resolvers/example
  3. pip install -r requirements.txt
  4. cd example_project
  5. python manage.py init_example
  6. python manage.py runserver
  7. Go to http://localhost:8000/graphql/

You should now see the graphql playground with examples for each resolver in the playground's tabs.

Project details


Download files

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

Files for ariadne-django-resolvers, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size ariadne_django_resolvers-0.1.4-py3-none-any.whl (20.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ariadne-django-resolvers-0.1.4.tar.gz (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page