diff --git a/lib/graphql/resolver.ex b/lib/graphql/resolver.ex index 786a84a0..3b84bdfc 100644 --- a/lib/graphql/resolver.ex +++ b/lib/graphql/resolver.ex @@ -2106,10 +2106,12 @@ defmodule AshGraphql.Graphql.Resolver do end end + # sobelow_skip ["DOS.StringToAtom"] defp mutation_result_type(mutation_name) do String.to_atom("#{mutation_name}_result") end + # sobelow_skip ["DOS.StringToAtom"] defp page_type(resource, pagination, relay?) do type = AshGraphql.Resource.Info.type(resource) diff --git a/lib/resource/resource.ex b/lib/resource/resource.ex index 1a35f01a..85b36166 100644 --- a/lib/resource/resource.ex +++ b/lib/resource/resource.ex @@ -2664,10 +2664,10 @@ defmodule AshGraphql.Resource do attribute.type.graphql_input_type(attribute.constraints) true -> - map_type(resource, attribute.name, _input? = true) + map_type(resource, attribute.name, true) end else - map_type(resource, attribute.name, _input? = true) + map_type(resource, attribute.name, true) end else nil @@ -2833,10 +2833,10 @@ defmodule AshGraphql.Resource do name: to_string(name), type: if Keyword.get(attribute, :allow_nil?, true) do - do_field_type(type, nil, nil, false) + do_field_type(type, nil, nil, true) else %Absinthe.Blueprint.TypeReference.NonNull{ - of_type: do_field_type(type, nil, nil, false) + of_type: do_field_type(type, nil, nil, true) } end }