graphql-python / graphql-python/graphene-django
Proposal to use graphene-django without relay
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 760
- PR merge metrics
- No merged PRs in 30d
Description
A few weeks ago I started playing with this module and it seemed very good, congratulations to the whole team.
The truth is that after further testing, following the documentation, I was not pleased that most of the implementations of important aspects in an API (pagination, filtering, among others) were only present for Relay, so I continued testing on a small project in which I was working, and make a small module, which I call **graphene-django-extras**, in which the following characteristics are present:
**Fields**:
1. DjangoListField
2. DjangoFilterListField
3. DjangoFilterPaginateListField
4. DjangoListObjectField
**Mutations**:
1. DjangoSerializerMutation
**Types**:
1. DjangoInputObjectType
2. DjangoPaginatedObjectListType
**Pagination**:
1. LimitOffsetGraphqlPagination
2. PageGraphqlPagination
3. CursorGraphqlPagination (_cooming soon_)
Here a example of query with pagination and filters, without Relay:
```js
{
allUsers(username_Icontains:"john"){
results(limit:5, offset:5){
id
username
firstName
lastName
}
totalCount
}
}
```
Here I leave the link of the repository with some documentation:
[graphene-django-extras](https://github.com/eamigo86/graphene-django-extras)
**Note**: If someone finds a bug please let me know. I would also appreciate any help you want to provide to improve the features.
Enjoy it!!!
Contributor guide
Assessment
This issue has not been assessed yet.