other: temp save

This commit is contained in:
2025-01-11 15:02:04 +08:00
parent 8f76e92804
commit 97b7bfb7fb
16 changed files with 229 additions and 278 deletions

View File

@@ -1,5 +1,5 @@
pub mod config;
pub mod query_root;
pub mod service;
pub mod config;
pub use query_root::schema;
pub use query_root::schema;

View File

@@ -2,7 +2,11 @@ use async_graphql::dynamic::*;
use sea_orm::DatabaseConnection;
use seaography::{Builder, BuilderContext};
lazy_static::lazy_static! { static ref CONTEXT : BuilderContext = BuilderContext :: default () ; }
lazy_static::lazy_static! { static ref CONTEXT : BuilderContext = {
BuilderContext {
..Default::default()
}
}; }
pub fn schema(
database: DatabaseConnection,
@@ -34,6 +38,7 @@ pub fn schema(
}
let schema = builder.schema_builder();
let schema = if let Some(depth) = depth {
schema.limit_depth(depth)
} else {