Ash FrameworkAF
Ash Framework3y ago
6 replies
gordoneliel

How to: Keyset pagination in AshJsonApi

When I enable keyset pagination in my read action, I get an error
** (KeyError) key :metadata not found in: #SomeAshResource..


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:
    read :read do
      primary? true
      pagination keyset?: true, default_limit: 15, countable: true, max_page_size: 100
    end


Are there any examples of Keyset pagination with ash?
Was this page helpful?