Skip to content

Translating cursors to original object id's #21

@indiloop

Description

@indiloop

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions