machinebox / graphql

Simple low-level GraphQL HTTP client for Go
https://blog.machinebox.io/a-graphql-client-library-for-go-5bffd0455878
Apache License 2.0
933 stars 218 forks source link

API Change - Returns a response object with Data and Headers #84

Closed dkempner closed 1 month ago

dkempner commented 1 month ago

Fixes https://github.com/machinebox/graphql/issues/49

Why?

Graphql sometimes needs to return headers, like Set-Cookie.

What

Rather than passing in a response object and having it filled out, .Run now returns a response object with a Data and Headers field.