From 84ca2e7125592e3a80f2c298a37a87cbc731356e Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 12 May 2021 06:49:08 -0400 Subject: [PATCH] chore: format --- lib/resource/resource.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/resource/resource.ex b/lib/resource/resource.ex index 278a35d..5e5ecc3 100644 --- a/lib/resource/resource.ex +++ b/lib/resource/resource.ex @@ -634,7 +634,8 @@ defmodule AshGraphql.Resource do |> Enum.filter(& &1.writable?) |> Enum.map(fn attribute -> allow_nil? = - attribute.allow_nil? || attribute.default != nil || 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