-
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
getEvents
should still return a cursor if there are no events
#340
Comments
This is specifically in reference to the returned types export interface GetEventsResponse {
latestLedger: number;
events: EventResponse[];
} |
It's in the |
But what if there are no events for a given filter? You may want to continue on but can't because there's no cursor. Especially given the way I think events are retrieved it's quite possible events are "missing" from your query and you need to paginate further for them. |
rpc.getEvents
doesn't return a cursor. Should it?getEvents
should still return a cursor if there are no events
Oh, I'm a fool. We actually have |
fwiw there's a cursor at the top level AND per event from the RPC |
Describe the bug
When
getEvents
doesn't return any events, there is no cursor to paginate on.The text was updated successfully, but these errors were encountered: