LoGin cd98ef2e55 修复“等待审查”和“等待修改”的label判断问题 (#11) 8 hónapja
..
src cd98ef2e55 修复“等待审查”和“等待修改”的label判断问题 (#11) 8 hónapja
Cargo.toml c7c8b7b6f5 Pin cynic to specific version 1 éve
PullRequestsOpen.gql a75633d258 Import pull request assignments into triagebot 9 hónapja
README.md a75633d258 Import pull request assignments into triagebot 9 hónapja
build.rs 4f17ff49ca Upgrade cynic to v3 1 éve

README.md

How to use GraphQL with Rust

GUI Clients (Electron apps)

Use a client to experiment and build your GraphQL query/mutation.

https://insomnia.rest/download

https://docs.usebruno.com

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.

Cynic CLI

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