-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] How to print/return raw response from graphql server? #71
Comments
It's not trivial... but it's possible. I use this technique for many libraries that don't provide an interface to do it.
The most tricky one is (2): // "github.com/henvic/httpretty"
logger := &httpretty.Logger{}
httpClient = &http.Client{
Transport: logger.RoundTripper(http.DefaultTransport),
}
gqlClient := graphql.NewClient(endpoint, graphql.WithHTTPClient(httpClient)) |
Oh, I just discovered there is a simpler way: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I see errors
So, how I can easily print raw response without changing the library?
The text was updated successfully, but these errors were encountered: