Move async-graphql to workspace deps & disable apollo tracing

This commit is contained in:
Quentin Gliech
2024-05-15 14:26:37 +02:00
parent 48d5e5f9e5
commit f53a978a52
4 changed files with 8 additions and 4 deletions

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"

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

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

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()
}