cleanup
This commit is contained in:
parent
f5f96e35d8
commit
07b3af9166
5 changed files with 11 additions and 155 deletions
|
@ -7,9 +7,9 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
redis = { version = "0.22.1", features = ["aio", "r2d2", "tokio-comp"] }
|
||||
serde_json = "1.0.88"
|
||||
serde = "1.0.147"
|
||||
async-graphql = { version = "4.0.16", features = ["apollo_tracing"] }
|
||||
serde_json = "1.0.89"
|
||||
serde = "1.0.148"
|
||||
async-graphql = { version = "4.0.16" }
|
||||
async-graphql-axum = "4.0.16"
|
||||
axum = "0.6.0"
|
||||
tokio = { version = "1.22.0" }
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
use std::any::Any;
|
||||
|
||||
use async_graphql::{Context, Enum, Object};
|
||||
use axum::{http::StatusCode, response::IntoResponse, Extension, Json};
|
||||
use redis::{aio::MultiplexedConnection, pipe};
|
||||
|
|
|
@ -6,7 +6,6 @@ mod vehicles;
|
|||
mod world;
|
||||
|
||||
use async_graphql::{
|
||||
extensions::ApolloTracing,
|
||||
http::{playground_source, GraphQLPlaygroundConfig},
|
||||
EmptyMutation, EmptySubscription, Request, Response, Schema,
|
||||
};
|
||||
|
@ -68,7 +67,6 @@ async fn main() {
|
|||
|
||||
let schema = Schema::build(query::Query, EmptyMutation, EmptySubscription)
|
||||
.data(redis.clone())
|
||||
.extension(ApolloTracing)
|
||||
.finish();
|
||||
|
||||
let app = Router::new()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue