LoGin cd98ef2e55 修复“等待审查”和“等待修改”的label判断问题 (#11) | hai 8 meses | |
---|---|---|
.. | ||
src | hai 8 meses | |
Cargo.toml | hai 1 ano | |
PullRequestsOpen.gql | hai 9 meses | |
README.md | hai 9 meses | |
build.rs | hai 1 ano |
Use a client to experiment and build your GraphQL query/mutation.
https://insomnia.rest/download
Once you're happy with the result, save your query in a <query>.gql
file in this directory. It will serve as
documentation on how to reproduce the Rust boilerplate.
Introspect a schema and save it locally:
cynic introspect \
-H "User-Agent: cynic/3.4.3" \
-H "Authorization: Bearer [GITHUB_TOKEN]" \
"https://api.github.com/graphql" \
-o schemas/github.graphql
Execute a GraphQL query/mutation and save locally the Rust boilerplate:
cynic querygen --schema schemas/github.graphql --query query.gql