The schema is taken from this repo.
The example expects to find a valid GitHub API Token in the environment (GITHUB_API_TOKEN
). See the GitHub documentation on how to generate one.
Then just run the example with a repository name as argument. For example:
cargo run --example github graphql-rust/graphql-client