pub trait FlowMutationFieldFactory:
Send
+ Sync
+ Lifecycle {
// Required methods
fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>;
fn create_creation_field(&self, flow_type: &FlowType) -> Result<Field, ()>;
}Required Methods§
Sourcefn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
Creates the mutation fields for flow types in the given namespace.
Sourcefn create_creation_field(&self, flow_type: &FlowType) -> Result<Field, ()>
fn create_creation_field(&self, flow_type: &FlowType) -> Result<Field, ()>
Creates the creation field for the given flow type.