Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/better pagination handling: add: better pagination handling #73

Merged
merged 8 commits into from
Jul 11, 2022

Conversation

johguentner
Copy link
Member

  • fix problem with next_cursor handling for database queries
  • added raw extraction (->fillResult()) for 'has_more' and 'next_cursor' in EntityCollection (e.g. executed on querying databases)
  • added ->offsetByResponse(...) for handling the offset based on the previous query result (query result = EntityCollection)
  • added public functions for easy access to 'has_more' (->hasMoreEntries()) and 'next_cursor' (->nextCursor()) in EntityCollection

johguentner and others added 2 commits July 10, 2022 16:32
- fix problem with next_cursor handling for database queries
- added raw extraction (->fillResult()) for 'has_more' and 'next_cursor' in EntityCollection (e.g. executed on querying databases)
- added ->offsetByResponse(...) for handling the offset based on the previous query result (query result = EntityCollection)
- added public functions for easy access to 'has_more' (->hasMoreEntries()) and 'next_cursor' (->nextCursor()) in EntityCollection
@johguentner johguentner requested a review from mechelon July 10, 2022 14:32
@johguentner johguentner self-assigned this Jul 10, 2022
@johguentner johguentner added this to the v0.8.0 🍉 milestone Jul 10, 2022
@johguentner johguentner changed the base branch from main to dev July 10, 2022 14:43
johguentner and others added 4 commits July 10, 2022 18:04
- and add return type to StartCursor '__toString'
- test without offset in query and with next_cursor in response
- test with offset in query (from previous response) and without next_cursor in response
@johguentner johguentner merged commit f1e0af9 into dev Jul 11, 2022
@johguentner johguentner deleted the feature/better-pagination-handling branch February 3, 2023 09:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants