Move async-graphql to workspace deps & disable apollo tracing

This commit is contained in:
Quentin Gliech committed 2024-05-15 14:54:34 +02:00
1 parent c8e074c8e2
commit 098f7fba03
4 files changed
+8 -4

No files matched your search

+5
View File
@@ -55,6 +55,11 @@ mas-templates = { path = "./crates/templates/", version = "=0.9.0" }
mas-tower = { path = "./crates/tower/", version = "=0.9.0" }
oauth2-types = { path = "./crates/oauth2-types/", version = "=0.9.0" }
# GraphQL server
[workspace.dependencies.async-graphql]
version = "6.0.11"
features = ["chrono", "url", "tracing"]
# Utility to write and implement async traits
[workspace.dependencies.async-trait]
version = "0.1.80"
+1 -1
View File
@@ -13,7 +13,7 @@ workspace = true
[dependencies]
anyhow.workspace = true
async-graphql = { version = "6.0.11", features = ["chrono", "url"] }
async-graphql.workspace = true
async-trait.workspace = true
chrono.workspace = true
lettre.workspace = true
+1 -1
View File
@@ -34,7 +34,7 @@ axum = "0.6.20"
axum-macros = "0.3.8"
axum-extra = { version = "0.8.0", features = ["cookie-private"] }
async-graphql = { version = "6.0.11", features = ["tracing", "apollo_tracing"] }
async-graphql.workspace = true
# Emails
lettre.workspace = true
+1 -2
View File
@@ -15,7 +15,7 @@
use std::sync::Arc;
use async_graphql::{
extensions::{ApolloTracing, Tracing},
extensions::Tracing,
http::{playground_source, GraphQLPlaygroundConfig, MultipartOptions},
};
use axum::{
@@ -110,7 +110,6 @@ pub fn schema(
mas_graphql::schema_builder()
.extension(Tracing)
.extension(ApolloTracing)
.data(state)
.finish()
}