Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this tutorial use cursor or offset navigation? #16

Closed
agcty opened this issue May 17, 2022 · 1 comment
Closed

Does this tutorial use cursor or offset navigation? #16

agcty opened this issue May 17, 2022 · 1 comment

Comments

@agcty
Copy link

agcty commented May 17, 2022

In the tutorial series it says it uses cursor-based pagination:

https://www.prisma.io/blog/fullstack-nextjs-graphql-prisma-2-fwpc6ds155#pagination-at-the-database-level
image

However, the code says something different:

https://github.com/prisma/awesome-links/blob/main/graphql/types/Link.ts#L28

image

Doesn't seem to me that it uses cursor-based pagination 🤔

@ruheni
Copy link
Contributor

ruheni commented Jan 17, 2023

Hi 👋🏽

We've updated the tutorial to use GraphQL Yoga and Pothos for the GraphQL API. Check it out and if you have any issues, let us know.

Pothos provides a Relay-pagination plugin that uses cursor-based pagination and integrates really nicely with Prisma. The plugin does all the heavy lifting now

I'll go ahead and close this issue. If it persists, you can re-open the issue.

@ruheni ruheni closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants