-
Notifications
You must be signed in to change notification settings - Fork 347
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
Fractal include pagination help! #440
Comments
What serializer are you using? JsonAPI has a link for each relationship and you can do paging for them: |
I am using Fractal's default serializer. Is there any examples that are available? |
Try: JsonApiSerializer
https://github.com/thephpleague/fractal/blob/master/src/Serializer/JsonApiSerializer.php
…Sent from my iPhone
On 7 Mar 2018, at 21:27, Joshua Gallagher ***@***.***> wrote:
I am using Fractal's default serializer.
Is there any examples that are available?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The documentation for the JsonApiSerializer says it does not support pagination? Is this a fault? Are there any other ways of implementing what I stated in my first question? |
I had a blank moment when writing this issue. My solution was to have a separate endpoint that got the Replies associated to that Thread, paginated. |
can you close this issue, if it is resolved? @Joshgallagher |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 4 weeks if no further activity occurs. Thank you for your contributions. |
Hi all,
I am using Laravel Fractal with one of my API's (a wrapper around this package).
I have a Thread that has many Replies and I want to paginate the Replies. The Replies are an include on the Thread Transformer.
How would I go about paginating a transformers include? Is it possible?
Thanks in advance!
The text was updated successfully, but these errors were encountered: