pub trait RelationMutationFieldFactory:
Send
+ Sync
+ Lifecycle {
// Required methods
fn get_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>;
fn create_creation_field(&self, relation_type: &RelationType) -> Field;
}Required Methods§
Sourcefn get_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
fn get_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
Creates the mutation fields for relation types in the given namespace.
Sourcefn create_creation_field(&self, relation_type: &RelationType) -> Field
fn create_creation_field(&self, relation_type: &RelationType) -> Field
Creates the creation field for the given relation type.