Organize the project into modules for better extendability
This commit is contained in:
parent
c9f39a3d37
commit
3bce0eeee0
4 changed files with 43 additions and 26 deletions
8
src/schema.rs
Normal file
8
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