vitalik / django-ninja

💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
https://django-ninja.dev
MIT License
6.58k stars 396 forks source link

Cursor pagination #385

Open asaff1 opened 2 years ago

asaff1 commented 2 years ago

Is your feature request related to a problem? Please describe. The current way to implement pagination is based on limit offset. I prefer the cursor style pagination.

Describe the solution you'd like Standard way to implement cursor style pagination, similar to DRF one: https://www.django-rest-framework.org/api-guide/pagination/#cursorpagination

benjaoming commented 4 weeks ago

This would be really nice. FastAPI Pagination only has cursor support for its sqlalchemy and casandra backend, so here's a good chance to have better features :)

benjaoming commented 4 weeks ago

Also relevant: https://github.com/photocrowd/django-cursor-pagination