-
Notifications
You must be signed in to change notification settings - Fork 23
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 pagination to the query #1300
Comments
@bega-cinaq In the graphql request you can specify a |
|
@bega-cinaq You can, the Retraced npm package is just a wrapper around the APIs - https://github.com/retracedhq/retraced-js/blob/main/src/graphql.ts#L76. |
@deepakprabhakara Hi, is there any example how it is used in the app ? There is no prevPage function. Is it assume we will do infinity scroll pagination ? |
Since it is cursor based search, for prevPage(s) you will have to keep the previous cursor(s) in memory - https://github.com/retracedhq/logs-viewer/blob/af925483f9e9df465e4d0377fef717063e45f0ca/src/components/containers/EventsBrowser.tsx#L217 |
Example what are you showing does it with api call, not with retraced npm package. |
@bega-cinaq Aah I see, we'll check to see if it's possible to use the npm package for it. Otherwise it does make sense to add support for it. |
Hi, I am using retraced with retraced npm package.
I am trying to get audit logs from -> retracedClient.query().
The problem, there is no pagination fields (pagination functionality).
How I can impletement pagination with retracedClient ?
Thanks.
The text was updated successfully, but these errors were encountered: