Skip to content

Commit

Permalink
improvement: make the node in relay edges non-null (#95)
Browse files Browse the repository at this point in the history
* make the node in relay edges non-null

* make the edge non-null too

* fix edge type
  • Loading branch information
barnabasJ authored Oct 3, 2023
1 parent 58a038e commit 34fd313
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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")
}
}
}
]
Expand Down

0 comments on commit 34fd313

Please sign in to comment.