semvec/pypi-packages huggingface dataset:
ariadne-django-resolvers 0.1.4
Easy to use resolvers (CRUD, Relay-Connection, List, Detail) for your graphql server.
License: MIT

# ariadne-django-resolvers
This library provides some class based dry resolvers for your graphql schema built with 
[ariadne](https://github.com/mirumee/ariadne/) and [django](https://github.com/django/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:
```console
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```
1. ```cd ariadne-django-resolvers/example```
1. ```pip install -r requirements.txt```
1. ```cd example_project```
1. ```python manage.py init_example```
1. ```python manage.py runserver```
1. Go to http://localhost:8000/graphql/

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