cli/go-gh

Flag for printing only GraphQL information

epanipinto opened this issue · 2 comments

This project has made my work significantly easier, thank you!

I am finding that often I am wanting to print only the GraphQL query & GraphQL variables but not the HTTP information. I know you can set os.Setenv("GH_DEBUG", "api") to print the GraphQL & HTTP information. I am finding that when I am developing my GraphQL struct that it would be useful to reduce some of the noise and only print out the GraphQL information.

@epanipinto Thanks for the feature request.

When you say "only GraphQL information", do you mean to avoid printing HTTP traffic like headers? What about the JSON response to a GraphQL query?

Closing this as stale as original author as not elaborated on feature request.