Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo authored Nov 13, 2024
1 parent 1d42e19 commit ca63d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/graphql/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,11 @@ def query(definition, variables: {}, context: {})
error_payload = payload.merge(message: error["message"], error: error)
ActiveSupport::Notifications.instrument("error.graphql", error_payload)
end

Response.new(
result,
data: definition.new(data, Errors.new(errors, ["data"])),
errors: Errors.new(errors),
extensions:,
extensions: extensions,
full_response: execute.respond_to?("last_response") ? execute.last_response : nil
)
end
Expand Down

0 comments on commit ca63d53

Please sign in to comment.