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§
Sourcefn create_mutation_objects(&self) -> Vec<Object>
fn create_mutation_objects(&self) -> Vec<Object>
Creates the mutation objects for all relation types.
Sourcefn create_mutation_object(&self, relation_type: RelationType) -> Object
fn create_mutation_object(&self, relation_type: RelationType) -> Object
Creates the mutation object for the given relation type.
Sourcefn create_update_field(&self, relation_type: &RelationType) -> Option<Field>
fn create_update_field(&self, relation_type: &RelationType) -> Option<Field>
Creates the update field in the mutation object for the given relation type.
Sourcefn create_trigger_field(&self, relation_type: &RelationType) -> Option<Field>
fn create_trigger_field(&self, relation_type: &RelationType) -> Option<Field>
Creates the trigger field in the mutation object for the given relation type.
Sourcefn create_export_field(&self) -> Field
fn create_export_field(&self) -> Field
Creates the export field in the mutation object for the given relation type.
Sourcefn create_delete_field(&self) -> Field
fn create_delete_field(&self) -> Field
Creates the delete field in the mutation object for the given relation type.