FlowMutationFieldFactory

Trait FlowMutationFieldFactory 

Source
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§

Source

fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>

Creates the mutation fields for flow types in the given namespace.

Source

fn create_creation_field(&self, flow_type: &FlowType) -> Result<Field, ()>

Creates the creation field for the given flow type.

Trait Implementations§

Source§

impl Injectable for dyn FlowMutationFieldFactory + Sync + Send

Implementors§