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.
This commit is contained in:
parent
b2384d2e76
commit
4faedce5c6
8 changed files with 157 additions and 214 deletions
8
services/gateway/src/schema.rs
Normal file
8
services/gateway/src/schema.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue