github.com/nathanstitt/genqlient@v0.3.1-0.20211028004951-a2bda3c41ab8/example/README.md (about) 1 # example of genqlient 2 3 ## Invoking the example 4 Create a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with no scopes. 5 6 To run the example: 7 8 ```sh 9 $ GITHUB_TOKEN=<your token> go run . <username> 10 you are Ben Kraft 11 csilvers is Craig Silverstein 12 ``` 13 14 ## Running genqlient 15 16 It's already checked in to GitHub, but to regenerate `generated.go`: 17 ```sh 18 go generate ./... 19 ``` 20 21 ## Generating the schema file 22 23 The schema file is also checked in, but to update it, download from the [GitHub API documentation](https://docs.github.com/en/graphql/overview/public-schema).