How to: Keyset pagination in AshJsonApi
When I enable keyset pagination in my read action, I get an error
Using offset pagination works, but doesnt show me the pagination metadata in the response either, just first/last page links
This is my read action:
Are there any examples of Keyset pagination with ash?
4 Replies
Can I see a stack trace for that error? I think that may be a bug.
And it’s also possible that we haven’t set up keyset pagination with ash_json_api. Likely a relatively easy thing to rectify.
Rest of stacktrace:
@gordoneliel since I've been on vacation I wasn't able to address this, but as far as I can tell this is likely just a typo referring to
.metadata
instead of .__metadata__
I can fix later, but if you want to make a PR we can get it mergedI can do that!