diff --git a/Cargo.lock b/Cargo.lock index f6c3064fc43ee..baf63859bd0bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -226,8 +226,9 @@ dependencies = [ [[package]] name = "async-graphql" -version = "7.0.16" -source = "git+https://github.com/yasamoka/async-graphql.git?rev=15fed95142019722e7da2c214ff9d8e2e755c9e5#15fed95142019722e7da2c214ff9d8e2e755c9e5" +version = "7.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "036618f842229ba0b89652ffe425f96c7c16a49f7e3cb23b56fca7f61fd74980" dependencies = [ "async-graphql-derive", "async-graphql-parser", @@ -275,8 +276,9 @@ dependencies = [ [[package]] name = "async-graphql-derive" -version = "7.0.16" -source = "git+https://github.com/yasamoka/async-graphql.git?rev=15fed95142019722e7da2c214ff9d8e2e755c9e5#15fed95142019722e7da2c214ff9d8e2e755c9e5" +version = "7.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd45deb3dbe5da5cdb8d6a670a7736d735ba65b455328440f236dfb113727a3d" dependencies = [ "Inflector", "async-graphql-parser", @@ -291,8 +293,9 @@ dependencies = [ [[package]] name = "async-graphql-parser" -version = "7.0.16" -source = "git+https://github.com/yasamoka/async-graphql.git?rev=15fed95142019722e7da2c214ff9d8e2e755c9e5#15fed95142019722e7da2c214ff9d8e2e755c9e5" +version = "7.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b7607e59424a35dadbc085b0d513aa54ec28160ee640cf79ec3b634eba66d3" dependencies = [ "async-graphql-value", "pest", @@ -302,8 +305,9 @@ dependencies = [ [[package]] name = "async-graphql-value" -version = "7.0.16" -source = "git+https://github.com/yasamoka/async-graphql.git?rev=15fed95142019722e7da2c214ff9d8e2e755c9e5#15fed95142019722e7da2c214ff9d8e2e755c9e5" +version = "7.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ecdaff7c9cffa3614a9f9999bf9ee4c3078fe3ce4d6a6e161736b56febf2de" dependencies = [ "bytes", "indexmap 2.2.6", diff --git a/Cargo.toml b/Cargo.toml index 4fa7853984d2a..3903df6609616 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ async-compression = { version = "0.3.13", default-features = false, features = [ "gzip", "tokio", ] } -async-graphql = "7.0.16" +async-graphql = "7.0.17" async-graphql-axum = "7.0.16" async-trait = "0.1.64" atty = "0.2.14" @@ -177,8 +177,3 @@ urlencoding = "2.1.2" webbrowser = "0.8.7" which = "4.4.0" unicode-segmentation = "1.10.1" - - -# Needed until a fix for https://github.com/async-graphql/async-graphql/issues/1703 is published -[patch.crates-io] -async-graphql = { git = "https://github.com/yasamoka/async-graphql.git", rev = "15fed95142019722e7da2c214ff9d8e2e755c9e5" } diff --git a/crates/turborepo-lib/src/query/mod.rs b/crates/turborepo-lib/src/query/mod.rs index d24e29a359990..35731c4dda816 100644 --- a/crates/turborepo-lib/src/query/mod.rs +++ b/crates/turborepo-lib/src/query/mod.rs @@ -627,7 +627,12 @@ impl RepositoryQuery { } pub async fn graphiql() -> impl IntoResponse { - response::Html(GraphiQLSource::build().endpoint("/").finish()) + response::Html( + GraphiQLSource::build() + .version("5.0.0-rc.1") + .endpoint("/") + .finish(), + ) } pub async fn run_query_server(run: Run, signal: SignalHandler) -> Result<(), Error> { diff --git a/crates/turborepo/tests/snapshots/query__basic_monorepo_get_schema_(npm@10.5.0).snap b/crates/turborepo/tests/snapshots/query__basic_monorepo_get_schema_(npm@10.5.0).snap index 368ed9c630f83..32871270a6901 100644 --- a/crates/turborepo/tests/snapshots/query__basic_monorepo_get_schema_(npm@10.5.0).snap +++ b/crates/turborepo/tests/snapshots/query__basic_monorepo_get_schema_(npm@10.5.0).snap @@ -3312,7 +3312,7 @@ expression: query_output }, { "name": "oneOf", - "description": "Indicates that an Input Object is a OneOf Input Object (and thus requires\n exactly one of its field be provided)", + "description": "Indicates that an Input Object is a OneOf Input Object (and thus requires exactly one of its field be provided)", "locations": [ "INPUT_OBJECT" ],