fix: use unpaginated read when loading

This commit is contained in:
Zach Daniel 2022-04-20 19:43:41 -04:00
parent 3fc088d1fc
commit d16432750f
2 changed files with 2 additions and 2 deletions

View file

@ -845,7 +845,7 @@ defmodule Ash.Api do
with %{valid?: true} <- query,
{:ok, action} <- get_action(query.resource, opts, :read, query.action),
{:ok, opts} <- Ash.OptionsHelpers.validate(opts, @load_opts_schema) do
Read.run(query, action, Keyword.merge(opts, initial_data: data, lazy?: true))
Read.unpaginated_read(query, action, Keyword.merge(opts, initial_data: data, lazy?: true))
else
{:error, error} ->
{:error, error}

View file

@ -22,7 +22,7 @@ defmodule Ash.Actions.PaginationTest do
read :read do
primary? true
pagination offset?: true, required?: true
pagination offset?: true, required?: true, default_limit: 25
end
end