Skip to content

Commit 6a1d032

Browse files
committed
fix: handle actions with no return
closes #274
1 parent a90e1b9 commit 6a1d032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/resolver.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ defmodule AshGraphql.Graphql.Resolver do
7777
tenant: Map.get(context, :tenant)
7878
]
7979

80-
if Ash.Type.can_load?(action.returns, action.constraints) do
80+
if action.returns && Ash.Type.can_load?(action.returns, action.constraints) do
8181
{fields, path} = nested_fields_and_path(resolution, [], [])
8282

8383
loads =

0 commit comments

Comments
 (0)