Closed cgendreau closed 6 years ago
I tried the following (without success)
The GraphQL query has object(expression: "master:LICENSE")
. You should include the whole thing in the graphql
tag, not just the part inside parenthesis:
Object struct {
...
} `graphql:"object(expression: \"master:LICENSE\")"`
Thanks for the help @shurcooL
Helped a lot @dmitshur
I have the following query (only the Repository section is included) that I tested against the GitHub GraphQL API to get the content of a file as text:
I was wondering how to translate the
object(expression: "master:LICENSE")
forgithubql
? I tried the following (without success):->
Error: Parse error on "master:LICENSE" (STRING)
Please note that I'm a total newbie to Go and I have very limited experience with GraphQL so do not hesitate to point me to the doc if I missed something :)