City-portal/services/gateway/src/schema.rs
Zeph Levy 4faedce5c6 Use a cargo workspace for better modularity
Currently, there is only a `gateway` crate, but in the future,
likely more will be added to handle db stuff, abstractions, etc once
I actually start implementing the city portal logic itself.
2025-10-19 14:46:59 +02:00

8 lines
283 B
Rust

use crate::resolvers::QueryRoot;
use async_graphql::{EmptyMutation, EmptySubscription, Schema};
pub type AppSchema = Schema<QueryRoot, EmptyMutation, EmptySubscription>;
pub fn build_schema() -> AppSchema {
Schema::build(QueryRoot, EmptyMutation, EmptySubscription).finish()
}