b2422452a1
This enables accessing the Extensions field, as defined in the response format: https://spec.graphql.org/October2021/#sec-Response-Format Extensions can be enabled using configuration option use_extensions. This will change the return parameters of the generated client functions. Making it a breaking change if enabled. Since extensions are untyped as defined in the spec, the Client will return an interface of type map[string]interface{}.
example of genqlient
Invoking the example
Create a personal access token with no scopes.
To run the example:
$ GITHUB_TOKEN=<your token> go run . <username>
you are Ben Kraft
csilvers is Craig Silverstein
Running genqlient
It's already checked in to GitHub, but to regenerate generated.go:
go generate ./...
Generating the schema file
The schema file is also checked in, but to update it, download from the GitHub API documentation.