-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Is there any reason why it's not implemented?
Why should I provide my after
or before
cursor calling right function, instead of just providing A CURSOR which has the info about if it goes forward or backward?
cursor := p.Paginate(....)
{
after: base64encode([after, after_cursor_data])
before: base64encode([before, before_cursor_data])
}
Now after i get cursor from api, i just provide it as_is:
opts = append(opts, paginator.WithCursor(cursor))
which is parsed internally to get information about if it's after or before.
Metadata
Metadata
Assignees
Labels
No labels