What Is the Best Way to Load Related Data with GET Requests, Paginated Posts of a category?
What Is the Best Way to Load Related Data with GET Requests, Such as Paginated Posts of a Specific category?
For example i do like this, i create
media_limit and media_offset and i put it manually inside Ash.Query, but i think AshJson has better way?
Thank you in advanceSolution:Jump to solution
I don't know if ash_json_api supports paginated relationships. You may need to open a feature request.
3 Replies
if you use Ashjson I would assume that it loads what you request automagically no?
as last I used JSON:API you could specify loads in the url?
Sorry, I didn’t quite understand your question. I wanted to see if there’s a better way to display the information of a collection and all its posts using AshJson, for example! And the posts should also be paginated.
i do not know :thinkies:
Solution
I don't know if ash_json_api supports paginated relationships. You may need to open a feature request.