update juniper to 0.17 but fr this time
All checks were successful
Build and Test / account (push) Successful in 7m27s
All checks were successful
Build and Test / account (push) Successful in 7m27s
This commit is contained in:
parent
67b1e83ddd
commit
751168154f
5 changed files with 29 additions and 311 deletions
|
|
@ -30,7 +30,6 @@ impl<'r> FromRequest<'r> for Context {
|
|||
}
|
||||
|
||||
pub type Schema = RootNode<
|
||||
'static,
|
||||
Query,
|
||||
EmptyMutation<Context>,
|
||||
EmptySubscription<Context>
|
||||
|
|
@ -220,7 +219,7 @@ pub async fn get_graphql(
|
|||
schema: &State<Schema>,
|
||||
context: Context
|
||||
) -> juniper_rocket::GraphQLResponse {
|
||||
request.execute(schema, &context).await
|
||||
request.execute(schema.inner(), &context).await
|
||||
}
|
||||
|
||||
#[rocket::post("/graphql", data = "<request>")]
|
||||
|
|
@ -229,5 +228,5 @@ pub async fn post_graphql(
|
|||
schema: &State<Schema>,
|
||||
context: Context
|
||||
) -> juniper_rocket::GraphQLResponse {
|
||||
request.execute(schema, &context).await
|
||||
request.execute(schema.inner(), &context).await
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use std::env;
|
||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use dotenvy::dotenv;
|
||||
use juniper::{EmptyMutation, EmptySubscription};
|
||||
|
|
@ -10,7 +9,6 @@ use rocket::response::content::RawXml;
|
|||
use rocket_cors::{AllowedOrigins, CorsOptions};
|
||||
use sqlx::Postgres;
|
||||
use sqlx::postgres::PgPoolOptions;
|
||||
use tonic::transport::Server;
|
||||
use crate::graphql::{Query, Schema};
|
||||
|
||||
mod xml;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use rocket::request::{FromRequest, Outcome};
|
|||
use rocket::response::content::RawXml;
|
||||
use tokio::fs::try_exists;
|
||||
use tokio::sync::RwLock;
|
||||
use tonic::async_trait;
|
||||
use rocket::async_trait;
|
||||
use crate::dsresponse::Ds;
|
||||
|
||||
pub static EVIL_AGREEMENT_THING: Lazy<RwLock<HashSet<String>>> = Lazy::new(|| Default::default());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue