mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 12:53:40 +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
|
||||
|
||||
defp unnest(%{type: {:array, type}, constraints: constraints} = attribute) do
|
||||
%{attribute | type: type, constraints: constraints[:items] || []}
|
||||
unnest(%{attribute | type: type, constraints: constraints[:items] || []})
|
||||
end
|
||||
|
||||
defp unnest(other), do: other
|
||||
|
|
Loading…
Reference in a new issue