reactive_graph_dynamic_graph_api/
relation_query_object_factory.rs

1use async_graphql::dynamic::Object;
2use async_trait::async_trait;
3use reactive_graph_graph::RelationType;
4use reactive_graph_lifecycle::Lifecycle;
5use springtime_di::injectable;
6
7#[injectable]
8#[async_trait]
9pub trait RelationQueryObjectFactory: Send + Sync + Lifecycle {
10    fn create_query_objects(&self) -> Vec<Object>;
11
12    fn create_query_object(&self, relation_type: RelationType) -> Object;
13}