diff --git a/lib/resource/resource.ex b/lib/resource/resource.ex index 67577e7..278a35d 100644 --- a/lib/resource/resource.ex +++ b/lib/resource/resource.ex @@ -634,7 +634,7 @@ defmodule AshGraphql.Resource do |> Enum.filter(& &1.writable?) |> Enum.map(fn attribute -> allow_nil? = - attribute.allow_nil? || attribute.default || type == :update || attribute.generated? || + attribute.allow_nil? || attribute.default != nil || type == :update || attribute.generated? || (type == :create && attribute.name in action.allow_nil_input) explicitly_required = attribute.name in action.require_attributes