20 lines
No EOL
484 B
Rust
20 lines
No EOL
484 B
Rust
mod mutation;
|
|
mod query;
|
|
|
|
pub use progress_pile_core::graphql::*;
|
|
|
|
pub use mutation::Mutation;
|
|
pub use query::Query;
|
|
|
|
use async_graphql::{EmptySubscription, Schema};
|
|
use async_graphql_axum::GraphQL;
|
|
use axum::{routing::get, Router};
|
|
|
|
|
|
pub fn build_schema() -> Schema<Query, Mutation, EmptySubscription>{
|
|
Schema::build(Query, Mutation, EmptySubscription).finish()
|
|
}
|
|
|
|
pub fn build_service() -> GraphQL<Schema<Query, Mutation, EmptySubscription>> {
|
|
GraphQL::new(build_schema())
|
|
} |