reactive_graph_plugin_graphql_api/
plugin_graphql_system.rs1use std::sync::Arc;
2
3use async_trait::async_trait;
4use springtime_di::injectable;
5
6use reactive_graph_lifecycle::Lifecycle;
7
8use crate::PluginQueryService;
9use crate::PluginSchemaManager;
10
11#[injectable]
12#[async_trait]
13pub trait PluginGraphQLSystem: Lifecycle {
14 fn get_plugin_query_service(&self) -> Arc<dyn PluginQueryService + Send + Sync>;
15
16 fn get_plugin_schema_manager(&self) -> Arc<dyn PluginSchemaManager + Send + Sync>;
17}