mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: use unpaginated read when loading
This commit is contained in:
parent
3fc088d1fc
commit
d16432750f
2 changed files with 2 additions and 2 deletions
|
@ -845,7 +845,7 @@ defmodule Ash.Api do
|
||||||
with %{valid?: true} <- query,
|
with %{valid?: true} <- query,
|
||||||
{:ok, action} <- get_action(query.resource, opts, :read, query.action),
|
{:ok, action} <- get_action(query.resource, opts, :read, query.action),
|
||||||
{:ok, opts} <- Ash.OptionsHelpers.validate(opts, @load_opts_schema) do
|
{: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
|
else
|
||||||
{:error, error} ->
|
{:error, error} ->
|
||||||
{:error, error}
|
{:error, error}
|
||||||
|
|
|
@ -22,7 +22,7 @@ defmodule Ash.Actions.PaginationTest do
|
||||||
|
|
||||||
read :read do
|
read :read do
|
||||||
primary? true
|
primary? true
|
||||||
pagination offset?: true, required?: true
|
pagination offset?: true, required?: true, default_limit: 25
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue