Skip to content

Paginating preloaded relationships #3303

Answered by davidharting
arthur-clq asked this question in Help
Discussion options

You must be logged in to vote

In your example in the original discussion, I would query for Posts directly, and filter by User ID in the where clause.

That way, the thing you want to paginate on becomes the top level resource in the query.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tmd-billing
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by thetutlage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants