jeffJ
Denoβ€’10mo agoβ€’
1 reply
jeff

How do I compute a cursor for kv.list?

I basically I want to list entries after a known key. I'm trying to implement this function:

function getEvents(afterEventId: string) {
const entries = db.list({ prefix: ["events"] }, { cursor: ??? }

....
}
Was this page helpful?