mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 21:03:09 +12:00
fix: handle nested array types
This commit is contained in:
parent
a7d89c14c5
commit
339a78ec98
1 changed files with 1 additions and 1 deletions
|
@ -2841,7 +2841,7 @@ defmodule AshGraphql.Resource do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp unnest(%{type: {:array, type}, constraints: constraints} = attribute) do
|
defp unnest(%{type: {:array, type}, constraints: constraints} = attribute) do
|
||||||
%{attribute | type: type, constraints: constraints[:items] || []}
|
unnest(%{attribute | type: type, constraints: constraints[:items] || []})
|
||||||
end
|
end
|
||||||
|
|
||||||
defp unnest(other), do: other
|
defp unnest(other), do: other
|
||||||
|
|
Loading…
Reference in a new issue