graphql-python / graphql-python/graphene-django
Backward Pagination not working correctly when using with last and before arguments
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 760
- PR merge metrics
- No merged PRs in 30d
Description
* **When we query the connection field with both last and before arguments it is not working as expected**
* **Steps to reproduce**
1. Querying all nodes

2. Copying the third node's edge's cursor and querying for before 2 nodes

* **It should return previous two nodes instead it is returning only one**
* **This issue occurs because the slicing of the edges occurs from last node(with cursor YXJyYXljb25uZWN0aW9uOjI=) instead of before node(with cursor YXJyYXljb25uZWN0aW9uOjE=)**
* **Environment:**
- Version: 3.0.0b7
- Platform: MacOs
Contributor guide
Assessment
This issue has not been assessed yet.