Skip to content
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

nextCursor when there are no next pages #7

Open
andreialecu opened this issue May 20, 2020 · 0 comments
Open

nextCursor when there are no next pages #7

andreialecu opened this issue May 20, 2020 · 0 comments

Comments

@andreialecu
Copy link

Hey, I was looking into this library and was wondering if this was supported, or if it's implemented already.

Assume a collection of chat messages. I'd like to get the last page, but have both a prevCursor and nextCursor available, even is there are no further results at the time of the query.

The prevCursor would work to get previous chat message pages, such as when the user scrolls up to browse through the history.

Assume the client is notified of new messages. It should be able to query with the nextCursor token and get new messages.

It might also work by sorting descending, but a cursor token to get fresh messages would still be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant