reactive_graph_dynamic_graph_api/flow_query_object_factory.rs
1use async_graphql::dynamic::Object;
2use async_trait::async_trait;
3use reactive_graph_graph::FlowType;
4use reactive_graph_lifecycle::Lifecycle;
5use springtime_di::injectable;
6
7#[injectable]
8#[async_trait]
9pub trait FlowQueryObjectFactory: Send + Sync + Lifecycle {
10 fn create_query_objects(&self) -> Vec<Object>;
11 fn create_query_object(&self, flow_type: FlowType) -> Object;
12}