Skip to content

Commit

Permalink
fix: properly transform not found errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 5, 2023
1 parent f83c447 commit 88aff43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/resolver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ defmodule AshGraphql.Graphql.Resolver do
)

resolution
|> Absinthe.Resolution.put_result({:error, [error]})
|> Absinthe.Resolution.put_result({:error, to_errors([error], context, api)})
|> add_root_errors(api, result)

{result, _} ->
Expand Down

0 comments on commit 88aff43

Please sign in to comment.