Skip to content

Pagination via the nodeByUri Query #2773

Answered by justlevine
Plinpod asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Plinpod and @CherryGot

By default WPGraphQL uses the Relay spec for pagination due to the pitfalls with offset pagination (here's a nice write up on the topic.

Ideally, I'd recommending thinking your site structure (meaning what exactly is the reason to have /page/# as a frontend route if you're no longer stuck using monolithic CMSes that can't handle reactivity and caching as well as modern headless technologies.

If you're still set on using offset pagination, you can try the WPGraphQL Offset Pagination extension.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cherrygot-personal
Comment options

@cherrygot-personal
Comment options

@justlevine
Comment options

Answer selected by Plinpod
Comment options

You must be logged in to vote
2 replies
@cherrygot-personal
Comment options

@Plinpod
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants