reactive_graph_runtime_graphql_api/
runtime_graphql_system.rs

1use std::sync::Arc;
2
3use async_trait::async_trait;
4use springtime_di::injectable;
5
6use reactive_graph_lifecycle::Lifecycle;
7
8use crate::RuntimeQueryService;
9use crate::RuntimeSchemaManager;
10
11#[injectable]
12#[async_trait]
13pub trait RuntimeGraphQLSystem: Lifecycle {
14    fn get_runtime_query_service(&self) -> Arc<dyn RuntimeQueryService + Send + Sync>;
15
16    fn get_runtime_schema_manager(&self) -> Arc<dyn RuntimeSchemaManager + Send + Sync>;
17}