diff --git a/lib/resource/resource.ex b/lib/resource/resource.ex index 8b1453c9..14908bc9 100644 --- a/lib/resource/resource.ex +++ b/lib/resource/resource.ex @@ -3103,7 +3103,9 @@ defmodule AshGraphql.Resource do module: schema, name: "node", __reference__: ref(__ENV__), - type: type + type: %Absinthe.Blueprint.TypeReference.NonNull{ + of_type: type + } } ], identifier: String.to_atom("#{type}_edge"), @@ -3132,7 +3134,9 @@ defmodule AshGraphql.Resource do name: "edges", __reference__: ref(__ENV__), type: %Absinthe.Blueprint.TypeReference.List{ - of_type: String.to_atom("#{type}_edge") + of_type: %Absinthe.Blueprint.TypeReference.NonNull{ + of_type: String.to_atom("#{type}_edge") + } } } ]