Files
genqlient/example
Craig Silverstein 587f77046b Expose the graphql operation as a constant in the generated genqlient file (#238)
This allows client code to see the operation (query or mutation) exactly
as genqlient sends it over the wire. This data was already available in
the generated safelist.json file, but now it's easily available from Go
code as well.
    
Fixes #236

I have:
- [x] Written a clear PR title and description (above)
- [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla)
- [x] Added tests covering my changes, if applicable
- [x] Included a link to the issue fixed, if applicable
- [x] Included documentation, for new features
- [x] Added an entry to the changelog
2022-11-21 08:35:09 -08:00
..
2022-03-30 13:48:01 -07:00
2021-09-15 10:48:50 -07:00
2021-09-15 10:48:50 -07:00
2021-04-02 17:01:49 -07:00

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.