fix: handle nested array types

This commit is contained in:
Zach Daniel 2023-09-13 14:55:17 -04:00
parent a7d89c14c5
commit 339a78ec98

View file

@ -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