reactive_graph_dynamic_graph_api/
component_mutation_field_factory.rs

1use async_graphql::dynamic::Field;
2use async_trait::async_trait;
3use reactive_graph_graph::Namespace;
4use reactive_graph_lifecycle::Lifecycle;
5use springtime_di::injectable;
6
7#[injectable]
8#[async_trait]
9pub trait ComponentMutationFieldFactory: Send + Sync + Lifecycle {
10    /// Creates the mutation fields for components in the given namespace.
11    fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>;
12}