RelationMutationObjectFactory

Trait RelationMutationObjectFactory 

Source
pub trait RelationMutationObjectFactory:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn create_mutation_objects(&self) -> Vec<Object>;
    fn create_mutation_object(&self, relation_type: RelationType) -> Object;
    fn create_update_field(&self, relation_type: &RelationType) -> Option<Field>;
    fn create_trigger_field(
        &self,
        relation_type: &RelationType,
    ) -> 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 relation types.

Source

fn create_mutation_object(&self, relation_type: RelationType) -> Object

Creates the mutation object for the given relation type.

Source

fn create_update_field(&self, relation_type: &RelationType) -> Option<Field>

Creates the update field in the mutation object for the given relation type.

Source

fn create_trigger_field(&self, relation_type: &RelationType) -> Option<Field>

Creates the trigger field in the mutation object for the given relation type.

Source

fn create_export_field(&self) -> Field

Creates the export field in the mutation object for the given relation type.

Source

fn create_delete_field(&self) -> Field

Creates the delete field in the mutation object for the given relation type.

Trait Implementations§

Source§

impl Injectable for dyn RelationMutationObjectFactory + Sync + Send

Implementors§