-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Labels
Description
Hey guys,
I was wondering if anyone could shed some light on how edge cursors work, and how they are generated.
I am trying to leverage the paging functionality provided by "connections", but I am not sure whether my cursors are being generated properly. At first I thought a cursor was the global id of the edge object, which I could have converted in its original id using fromGlobalId(args.after) but it seems that isn't the case.
I need to get at the original id, so that i can structure my SQL query to only retrieve results that occur after my original id. My sql database has no knowledge of the cursors generated in graphql, so I'm at a loss on how to make that connection.
Thanks in advance!
lffg