-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a helper method for generating a PaginationCursor #513
Conversation
🦋 Changeset detectedLatest commit: 2ff15c6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
TBDocs Report ✅ No errors or warnings @web5/api
@web5/crypto
@web5/crypto-aws-kms
@web5/dids
@web5/credentials
TBDocs Report Updated at 2024-05-08T01:29:54Z |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #513 +/- ##
==========================================
+ Coverage 91.04% 91.06% +0.01%
==========================================
Files 116 116
Lines 29562 29603 +41
Branches 2177 2185 +8
==========================================
+ Hits 26915 26958 +43
+ Misses 2612 2610 -2
Partials 35 35
|
60ef86a
to
c367517
Compare
Currently the only way to get a pagination cursor is from a query response that has more than the number of records you've queried for. However there could be some cases where the user wants to keep track of the last record they have retrieved and retrieve subsequent records. Added some helper methods to `agent` in order to build/return the data needed, and a convenience method to the `Record` class in `api` that utilizes them.
Currently the only way to get a pagination cursor is from a query response that has more than the number of records you've queried for.
However there could be some cases where the user wants to keep track of the last record they have retrieved and retrieve subsequent records.
Added some helper methods to
agent
in order to build/return the data needed, and a convenience method to theRecord
class inapi
that utilizes them.