EntityMutationObjectFactory

Trait EntityMutationObjectFactory 

Source
pub trait EntityMutationObjectFactory:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn create_mutation_objects(&self) -> Vec<Object>;
    fn create_mutation_object(&self, entity_type: EntityType) -> Object;
    fn create_update_field(&self, entity_type: &EntityType) -> Option<Field>;
    fn create_trigger_field(&self, entity_type: &EntityType) -> Option<Field>;
    fn create_export_field(&self) -> Field;
    fn create_delete_field(&self) -> Field;
}

Required Methods§

Source

fn create_mutation_objects(&self) -> Vec<Object>

Creates the mutation objects for all entity types.

Source

fn create_mutation_object(&self, entity_type: EntityType) -> Object

Create the mutation object for the given entity type.

Source

fn create_update_field(&self, entity_type: &EntityType) -> Option<Field>

Creates the update field of the mutation object for the given flow type.

Source

fn create_trigger_field(&self, entity_type: &EntityType) -> Option<Field>

Creates the trigger field of the mutation object for the given flow type.

Source

fn create_export_field(&self) -> Field

Creates the export field of the mutation object for the given flow type.

Source

fn create_delete_field(&self) -> Field

Creates the delete field of the mutation object for the given flow type.

Trait Implementations§

Source§

impl Injectable for dyn EntityMutationObjectFactory + Sync + Send

Implementors§