Skip to content

Commit

Permalink
fix: #2234 (#2235) Response.Errors in DispatchError function is not P…
Browse files Browse the repository at this point in the history
…resentedError
  • Loading branch information
oikyn committed Jun 10, 2022
1 parent c355df9 commit 3a64078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (e *Executor) DispatchError(ctx context.Context, list gqlerror.List) *graph

resp := e.ext.responseMiddleware(ctx, func(ctx context.Context) *graphql.Response {
resp := &graphql.Response{
Errors: list,
Errors: graphql.GetErrors(ctx),
}
resp.Extensions = graphql.GetExtensions(ctx)
return resp
Expand Down

0 comments on commit 3a64078

Please sign in to comment.