GraphQL cursor pagination with Algolia pagination

How can you change a GraphQL cursor style pagination into an Algolia pagination search?

For example, our Rails application API uses GraphQL and pagination is done by providing a first/last (number of records to return) and after/before cursor (the records ID to start at).

Algolia’s pagination can work with length and offset, but the offset isn’t the records ID which is what GraphQL gets.

Is there away to make Algolia search and Graphql pagination work together?