Skip to content

Commit

Permalink
fix: handle nested array types
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 13, 2023
1 parent a7d89c1 commit 339a78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 339a78e

Please sign in to comment.