I have the following action in my resource:
read :list_from_organization do
description "Returns all buy lists from organization"
pagination keyset?: true, default_limit: 10
filter expr(user.organization_id == ^actor(:organization_id))
end
If I call this function using Ash.Query.for_read
like this:
BuyList
|> Ash.Query.for_read(:list_from_organization, %{}, actor: actor)
|> Ash.Query.filter(id in ^buy_lists_ids)
|> Ash.read!(load: :investors)
It will return the results inside a Ash.Page.Keyset
object.
What I want is to return the results as just a simple list, is there some way to disable the pagination when calling the function (maybe something like Ash.read(page: false)
)?