RelationMutationFieldFactory

Trait RelationMutationFieldFactory 

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

Source

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

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

Source

fn create_creation_field(&self, relation_type: &RelationType) -> Field

Creates the creation field for the given relation type.

Trait Implementations§

Source§

impl Injectable for dyn RelationMutationFieldFactory + Sync + Send

Implementors§