Skip to content

Commit

Permalink
examples/graphql_issues.rs: Use graphql_client to get stronger typing
Browse files Browse the repository at this point in the history
This results in nicer code. The biggest downside is that we need the
GitHub GraphQL schema. We could download it in a build script, but it's
only about a megabyte, and changes rarely, so we can probably get away
with versioning a copy of it in the repo. It's nice to avoid build
scripts.
  • Loading branch information
Enselic authored and XAMPPRocky committed Nov 5, 2023
1 parent 06f2865 commit 551871a
Show file tree
Hide file tree
Showing 4 changed files with 60,110 additions and 44 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ wiremock = "0.5.3"
crypto_box = { version = "0.8.2", features = ["seal"] }
base64 = "0.21.2"
pretty_assertions = "1.4.0"
graphql_client = "0.13.0"

[features]
default = ["follow-redirect", "retry", "rustls", "timeout", "tracing"]
Expand Down
Loading

0 comments on commit 551871a

Please sign in to comment.