Skip to content

Commit 68069fb

Browse files
author
Aleksander Korelskiy
committed
fix(graphql): errors response fix
1 parent c2c3d57 commit 68069fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

transport/grapql/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func (s Server) errorEncoder(_ context.Context, err error, w http.ResponseWriter
8484
w.Header().Set("Content-Type", "application/json; charset=utf-8")
8585
json.NewEncoder(w).Encode(map[string]interface{}{
8686
"error": err.Error(),
87+
"data": nil,
8788
})
8889
}
8990

0 commit comments

Comments
 (0)